RoverAutopilot#
- class RoverAutopilot#
The Rover Autopilot window, which drives a rover at a heading and speed, or along its waypoints.
- control_heading#
Whether the autopilot holds
RoverAutopilot.heading.- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- heading#
The heading to hold, in degrees.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
Note
Requires
RoverAutopilot.control_heading.
- heading_error#
The difference between the vessel’s heading and the heading to hold, in degrees.
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- control_speed#
Whether the autopilot holds
RoverAutopilot.speed.- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- speed#
The speed to hold, in \(\mathrm{m/s}\).
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
Note
Requires
RoverAutopilot.control_speed.
- speed_error#
The difference between the vessel’s speed and the speed to hold, in \(\mathrm{m/s}\).
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- target_speed#
The speed the autopilot drives at now, in \(\mathrm{m/s}\).
- Attribute:
Read-only, cannot be set
- Return type:
float
- Game Scenes:
Flight
- stability_control#
Whether the autopilot keeps the rover upright.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- brake_on_eject#
Whether to brake when the crew leaves the rover.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- brake_on_energy_depletion#
Whether to brake when the rover runs out of electric charge.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- warp_to_daylight#
Whether to warp time to daylight after braking for a lack of electric charge.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
Note
Requires
RoverAutopilot.brake_on_energy_depletion.
- waypoints#
The waypoints, in the order the rover drives to them.
- Attribute:
Read-only, cannot be set
- Return type:
list(
RoverWaypoint)- Game Scenes:
Flight
- waypoint_index#
The index of the waypoint the autopilot drives to, or -1 if there is none.
- Attribute:
Read-only, cannot be set
- Return type:
int
- Game Scenes:
Flight
- loop_waypoints#
Whether to return to the first waypoint after the last one.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- add_waypoint(latitude, longitude)#
Add a waypoint at a position on the surface of the body the vessel is at.
- Parameters:
latitude (float) – The latitude, in degrees.
longitude (float) – The longitude, in degrees.
- Returns:
The waypoint.
- Return type:
- Game Scenes:
Flight
- clear_waypoints()#
Remove all the waypoints.
- Game Scenes:
Flight
- add_target()#
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
- 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.
- Game Scenes:
Flight
- drive()#
Drive along the waypoints. Throws an exception if there are none.
- Game Scenes:
Flight
- stop()#
Stop driving along the waypoints.
- Game Scenes:
Flight
RoverWaypoint#
- class 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
RoverAutopilot.clear_waypoints()andRoverAutopilot.drive_to_target().- latitude#
The latitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- longitude#
The longitude of the waypoint, in degrees. Throws an exception when set if the waypoint is at a vessel.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- radius#
The distance from the waypoint at which the rover has reached it, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- name#
The name of the waypoint.
- Attribute:
Can be read or written
- Return type:
str
- Game Scenes:
Flight
- min_speed#
The lowest speed on the way to the waypoint, in \(\mathrm{m/s}\), or 0 for no limit.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- max_speed#
The highest speed on the way to the waypoint, in \(\mathrm{m/s}\), or 0 for no limit.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight