RoverAutopilot#
- class MechJeb.RoverAutopilot()#
The Rover Autopilot window, which drives a rover at a heading and speed, or along its waypoints.
- RoverAutopilot.getControlHeading()#
- RoverAutopilot.setControlHeading(value)#
Whether the autopilot holds
MechJeb.RoverAutopilot.getHeading().- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- RoverAutopilot.getHeading()#
- RoverAutopilot.setHeading(value)#
The heading to hold, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
- RoverAutopilot.getHeadingError()#
The difference between the vessel’s heading and the heading to hold, in degrees.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- RoverAutopilot.getControlSpeed()#
- RoverAutopilot.setControlSpeed(value)#
Whether the autopilot holds
MechJeb.RoverAutopilot.getSpeed().- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- RoverAutopilot.getSpeed()#
- RoverAutopilot.setSpeed(value)#
The speed to hold, in \(\mathrm{m/s}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.RoverAutopilot.getControlSpeed().
- RoverAutopilot.getSpeedError()#
The difference between the vessel’s speed and the speed to hold, in \(\mathrm{m/s}\).
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- RoverAutopilot.getTargetSpeed()#
The speed the autopilot drives at now, in \(\mathrm{m/s}\).
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- RoverAutopilot.getStabilityControl()#
- RoverAutopilot.setStabilityControl(value)#
Whether the autopilot keeps the rover upright.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- RoverAutopilot.getBrakeOnEject()#
- RoverAutopilot.setBrakeOnEject(value)#
Whether to brake when the crew leaves the rover.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- RoverAutopilot.getBrakeOnEnergyDepletion()#
- RoverAutopilot.setBrakeOnEnergyDepletion(value)#
Whether to brake when the rover runs out of electric charge.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- RoverAutopilot.getWarpToDaylight()#
- RoverAutopilot.setWarpToDaylight(value)#
Whether to warp time to daylight after braking for a lack of electric charge.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
Note
Requires
MechJeb.RoverAutopilot.getBrakeOnEnergyDepletion().
- RoverAutopilot.getWaypoints()#
The waypoints, in the order the rover drives to them.
- Property:
Read-only, cannot be set
- Return type:
ArrayofMechJeb.RoverWaypoint- Game Scenes:
Flight
- RoverAutopilot.getWaypointIndex()#
The index of the waypoint the autopilot drives to, or -1 if there is none.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- RoverAutopilot.getLoopWaypoints()#
- RoverAutopilot.setLoopWaypoints(value)#
Whether to return to the first waypoint after the last one.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- RoverAutopilot.addWaypoint(latitude, longitude)#
Add a waypoint at a position on the surface of the body the vessel is at.
- Arguments:
latitude (
number) – The latitude, in degrees.longitude (
number) – The longitude, in degrees.
- Returns:
The waypoint.
- Return type:
- Game Scenes:
Flight
- RoverAutopilot.clearWaypoints()#
Remove all the waypoints.
- Game Scenes:
Flight
- RoverAutopilot.addTarget()#
Add a waypoint at the target. Throws an exception if the target is not a vessel or a position on the surface.
- Returns:
The waypoint.
- Return type:
- Game Scenes:
Flight
- RoverAutopilot.driveToTarget()#
Replace the waypoints with the target, and drive to it. Throws an exception if the target is not a vessel or a position on the surface.
- Game Scenes:
Flight
- RoverAutopilot.drive()#
Drive along the waypoints. Throws an exception if there are none.
- Game Scenes:
Flight
- RoverAutopilot.stop()#
Stop driving along the waypoints.
- Game Scenes:
Flight
RoverWaypoint#
- class MechJeb.RoverWaypoint()#
A waypoint of the
MechJeb.RoverAutopilot, as the Waypoints window shows it.Note
The object is destroyed once the waypoints are cleared or replaced, as by
MechJeb.RoverAutopilot.clearWaypoints()andMechJeb.RoverAutopilot.driveToTarget().- RoverWaypoint.getLatitude()#
- RoverWaypoint.setLatitude(value)#
The latitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- RoverWaypoint.getLongitude()#
- RoverWaypoint.setLongitude(value)#
The longitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- RoverWaypoint.getRadius()#
- RoverWaypoint.setRadius(value)#
The distance from the waypoint at which the rover has reached it, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- RoverWaypoint.getName()#
- RoverWaypoint.setName(value)#
The name of the waypoint.
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight