mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Sub: Remove unused flight modes
This commit is contained in:
parent
e4ff445ea7
commit
40a27814e0
@ -146,7 +146,6 @@ NOINLINE void Sub::send_extended_status1(mavlink_channel_t chan)
|
||||
case VELHOLD:
|
||||
case CIRCLE:
|
||||
case SURFACE:
|
||||
case OF_LOITER:
|
||||
case POSHOLD:
|
||||
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL;
|
||||
control_sensors_enabled |= MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL;
|
||||
|
@ -95,10 +95,8 @@ enum control_mode_t {
|
||||
AUTO = 3, // not implemented in sub // fully automatic waypoint control using mission commands
|
||||
GUIDED = 4, // not implemented in sub // fully automatic fly to coordinate or fly at velocity/direction using GCS immediate commands
|
||||
VELHOLD = 5, // automatic x/y velocity control and automatic depth/throttle
|
||||
// RTL = 6, // not implemented in sub // automatic return to launching point
|
||||
CIRCLE = 7, // not implemented in sub // automatic circular flight with automatic throttle
|
||||
SURFACE = 9, // automatically return to surface, pilot maintains horizontal control
|
||||
OF_LOITER = 10, // deprecated
|
||||
POSHOLD = 16, // automatic position hold with manual override, with automatic throttle
|
||||
MANUAL = 19 // Pass-through input with no stabilization
|
||||
};
|
||||
|
@ -263,9 +263,6 @@ void Sub::print_flight_mode(AP_HAL::BetterStream *port, uint8_t mode)
|
||||
case SURFACE:
|
||||
port->print("SURFACE");
|
||||
break;
|
||||
case OF_LOITER:
|
||||
port->print("OF_LOITER");
|
||||
break;
|
||||
case POSHOLD:
|
||||
port->print("POSHOLD");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user