Sub: Remove unused flight modes

This commit is contained in:
Jacob Walser 2017-03-08 17:12:43 -05:00 committed by Randy Mackay
parent e4ff445ea7
commit 40a27814e0
3 changed files with 0 additions and 6 deletions

View File

@ -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;

View File

@ -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
};

View File

@ -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;