.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::MechJeb AircraftAutopilot ================= .. class:: AircraftAutopilot The Aircraft Autopilot window, which holds a heading, altitude, vertical speed, roll and speed. .. function:: bool enabled() .. function:: void set_enabled(bool value) Whether the module is enabled. :Game Scenes: Flight .. function:: bool altitude_hold_enabled() .. function:: void set_altitude_hold_enabled(bool value) Whether the autopilot holds the altitude. :Game Scenes: Flight .. function:: double altitude_target() .. function:: void set_altitude_target(double value) The target altitude, in meters. :Game Scenes: Flight .. function:: double bank_angle() .. function:: void set_bank_angle(double value) The bank angle of a turn, in degrees. :Game Scenes: Flight .. function:: bool heading_hold_enabled() .. function:: void set_heading_hold_enabled(bool value) Whether the autopilot holds the heading. :Game Scenes: Flight .. function:: double heading_target() .. function:: void set_heading_target(double value) The target heading, in degrees. :Game Scenes: Flight .. function:: bool roll_hold_enabled() .. function:: void set_roll_hold_enabled(bool value) Whether the autopilot holds the roll. :Game Scenes: Flight .. function:: double roll_target() .. function:: void set_roll_target(double value) The target roll, in degrees. :Game Scenes: Flight .. function:: bool speed_hold_enabled() .. function:: void set_speed_hold_enabled(bool value) Whether the autopilot holds the speed. :Game Scenes: Flight .. function:: double speed_target() .. function:: void set_speed_target(double value) The target speed, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. function:: bool vert_speed_hold_enabled() .. function:: void set_vert_speed_hold_enabled(bool value) Whether the autopilot holds the vertical speed. :Game Scenes: Flight .. function:: double vert_speed_target() .. function:: void set_vert_speed_target(double value) The target vertical speed, in :math:`\mathrm{m/s}`. :Game Scenes: Flight .. function:: double acc_kd() .. function:: void set_acc_kd(double value) The derivative gain of the speed controller. :Game Scenes: Flight .. function:: double acc_ki() .. function:: void set_acc_ki(double value) The integral gain of the speed controller. :Game Scenes: Flight .. function:: double acc_kp() .. function:: void set_acc_kp(double value) The proportional gain of the speed controller. :Game Scenes: Flight .. function:: double pit_kd() .. function:: void set_pit_kd(double value) The derivative gain of the pitch controller. :Game Scenes: Flight .. function:: double pit_ki() .. function:: void set_pit_ki(double value) The integral gain of the pitch controller. :Game Scenes: Flight .. function:: double pit_kp() .. function:: void set_pit_kp(double value) The proportional gain of the pitch controller. :Game Scenes: Flight .. function:: double rol_kd() .. function:: void set_rol_kd(double value) The derivative gain of the roll controller. :Game Scenes: Flight .. function:: double rol_ki() .. function:: void set_rol_ki(double value) The integral gain of the roll controller. :Game Scenes: Flight .. function:: double rol_kp() .. function:: void set_rol_kp(double value) The proportional gain of the roll controller. :Game Scenes: Flight .. function:: double yaw_kd() .. function:: void set_yaw_kd(double value) The derivative gain of the yaw controller. :Game Scenes: Flight .. function:: double yaw_ki() .. function:: void set_yaw_ki(double value) The integral gain of the yaw controller. :Game Scenes: Flight .. function:: double yaw_kp() .. function:: void set_yaw_kp(double value) The proportional gain of the yaw controller. :Game Scenes: Flight .. function:: double pitch_down_limit() .. function:: void set_pitch_down_limit(double value) The largest pitch down, in degrees. :Game Scenes: Flight .. function:: double pitch_up_limit() .. function:: void set_pitch_up_limit(double value) The largest pitch up, in degrees. :Game Scenes: Flight .. function:: double roll_limit() .. function:: void set_roll_limit(double value) The largest roll, in degrees. :Game Scenes: Flight .. function:: double yaw_limit() .. function:: void set_yaw_limit(double value) The largest yaw, in degrees. :Game Scenes: Flight