RoverAutopilot#

RoverAutopilot

The Rover Autopilot window, which drives a rover at a heading and speed, or along its waypoints.

A RoverAutopilot object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /mech-jeb/rover-autopilot/(id)/control-heading#

Whether the autopilot holds GET /mech-jeb/rover-autopilot/(id)/heading.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/control-heading#

Whether the autopilot holds GET /mech-jeb/rover-autopilot/(id)/heading.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /mech-jeb/rover-autopilot/(id)/heading#

The heading to hold, in degrees.

Parameters:
Response JSON Object:
  • value (double)

PUT /mech-jeb/rover-autopilot/(id)/heading#

The heading to hold, in degrees.

Parameters:
Request JSON Object:
  • value (double) – The new value.

GET /mech-jeb/rover-autopilot/(id)/heading-error#

The difference between the vessel’s heading and the heading to hold, in degrees.

Parameters:
Response JSON Object:
  • value (double)

GET /mech-jeb/rover-autopilot/(id)/control-speed#

Whether the autopilot holds GET /mech-jeb/rover-autopilot/(id)/speed.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/control-speed#

Whether the autopilot holds GET /mech-jeb/rover-autopilot/(id)/speed.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /mech-jeb/rover-autopilot/(id)/speed#

The speed to hold, in \(\mathrm{m/s}\).

Parameters:
Response JSON Object:
  • value (double)

PUT /mech-jeb/rover-autopilot/(id)/speed#

The speed to hold, in \(\mathrm{m/s}\).

Parameters:
Request JSON Object:
  • value (double) – The new value.

GET /mech-jeb/rover-autopilot/(id)/speed-error#

The difference between the vessel’s speed and the speed to hold, in \(\mathrm{m/s}\).

Parameters:
Response JSON Object:
  • value (double)

GET /mech-jeb/rover-autopilot/(id)/target-speed#

The speed the autopilot drives at now, in \(\mathrm{m/s}\).

Parameters:
Response JSON Object:
  • value (double)

GET /mech-jeb/rover-autopilot/(id)/stability-control#

Whether the autopilot keeps the rover upright.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/stability-control#

Whether the autopilot keeps the rover upright.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /mech-jeb/rover-autopilot/(id)/brake-on-eject#

Whether to brake when the crew leaves the rover.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/brake-on-eject#

Whether to brake when the crew leaves the rover.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /mech-jeb/rover-autopilot/(id)/brake-on-energy-depletion#

Whether to brake when the rover runs out of electric charge.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/brake-on-energy-depletion#

Whether to brake when the rover runs out of electric charge.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /mech-jeb/rover-autopilot/(id)/warp-to-daylight#

Whether to warp time to daylight after braking for a lack of electric charge.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/warp-to-daylight#

Whether to warp time to daylight after braking for a lack of electric charge.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

GET /mech-jeb/rover-autopilot/(id)/waypoints#

The waypoints, in the order the rover drives to them.

Parameters:
Response JSON Object:
  • value (list<MechJeb.RoverWaypoint>)

GET /mech-jeb/rover-autopilot/(id)/waypoint-index#

The index of the waypoint the autopilot drives to, or -1 if there is none.

Parameters:
Response JSON Object:
  • value (int32)

GET /mech-jeb/rover-autopilot/(id)/loop-waypoints#

Whether to return to the first waypoint after the last one.

Parameters:
Response JSON Object:
  • value (bool)

PUT /mech-jeb/rover-autopilot/(id)/loop-waypoints#

Whether to return to the first waypoint after the last one.

Parameters:
Request JSON Object:
  • value (bool) – The new value.

POST /mech-jeb/rover-autopilot/(id)/add-waypoint#

Add a waypoint at a position on the surface of the body the vessel is at.

Parameters:
Request JSON Object:
  • latitude (double) – The latitude, in degrees.

  • longitude (double) – The longitude, in degrees.

Response JSON Object:
  • value (MechJeb.RoverWaypoint) – The waypoint.

POST /mech-jeb/rover-autopilot/(id)/clear-waypoints#

Remove all the waypoints.

Parameters:
POST /mech-jeb/rover-autopilot/(id)/add-target#

Add a waypoint at the target. Throws an exception if the target is not a vessel or a position on the surface.

Parameters:
Response JSON Object:
  • value (MechJeb.RoverWaypoint) – The waypoint.

POST /mech-jeb/rover-autopilot/(id)/drive-to-target#

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.

Parameters:
POST /mech-jeb/rover-autopilot/(id)/drive#

Drive along the waypoints. Throws an exception if there are none.

Parameters:
POST /mech-jeb/rover-autopilot/(id)/stop#

Stop driving along the waypoints.

Parameters:

RoverWaypoint#

RoverWaypoint

A waypoint of the RoverAutopilot, as the Waypoints window shows it.

Note

The object is destroyed once the waypoints are cleared or replaced, as by POST /mech-jeb/rover-autopilot/(id)/clear-waypoints and POST /mech-jeb/rover-autopilot/(id)/drive-to-target.

A RoverWaypoint object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /mech-jeb/rover-waypoint/(id)/latitude#

The latitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.

Parameters:
Response JSON Object:
  • value (double)

PUT /mech-jeb/rover-waypoint/(id)/latitude#

The latitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.

Parameters:
Request JSON Object:
  • value (double) – The new value.

GET /mech-jeb/rover-waypoint/(id)/longitude#

The longitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.

Parameters:
Response JSON Object:
  • value (double)

PUT /mech-jeb/rover-waypoint/(id)/longitude#

The longitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.

Parameters:
Request JSON Object:
  • value (double) – The new value.

GET /mech-jeb/rover-waypoint/(id)/radius#

The distance from the waypoint at which the rover has reached it, in meters.

Parameters:
Response JSON Object:
  • value (float)

PUT /mech-jeb/rover-waypoint/(id)/radius#

The distance from the waypoint at which the rover has reached it, in meters.

Parameters:
Request JSON Object:
  • value (float) – The new value.

GET /mech-jeb/rover-waypoint/(id)/name#

The name of the waypoint.

Parameters:
Response JSON Object:
  • value (string)

PUT /mech-jeb/rover-waypoint/(id)/name#

The name of the waypoint.

Parameters:
Request JSON Object:
  • value (string) – The new value.

GET /mech-jeb/rover-waypoint/(id)/min-speed#

The lowest speed on the way to the waypoint, in \(\mathrm{m/s}\), or 0 for no limit.

Parameters:
Response JSON Object:
  • value (float)

PUT /mech-jeb/rover-waypoint/(id)/min-speed#

The lowest speed on the way to the waypoint, in \(\mathrm{m/s}\), or 0 for no limit.

Parameters:
Request JSON Object:
  • value (float) – The new value.

GET /mech-jeb/rover-waypoint/(id)/max-speed#

The highest speed on the way to the waypoint, in \(\mathrm{m/s}\), or 0 for no limit.

Parameters:
Response JSON Object:
  • value (float)

PUT /mech-jeb/rover-waypoint/(id)/max-speed#

The highest speed on the way to the waypoint, in \(\mathrm{m/s}\), or 0 for no limit.

Parameters:
Request JSON Object:
  • value (float) – The new value.