mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 21:23:35 +08:00
delete RATTITUDE flight mode
This commit is contained in:
@@ -424,10 +424,6 @@ OSDatxxxx::get_flight_mode(uint8_t nav_state)
|
||||
case vehicle_status_s::NAVIGATION_STATE_STAB:
|
||||
flight_mode = "STABILIZED";
|
||||
break;
|
||||
|
||||
case vehicle_status_s::NAVIGATION_STATE_RATTITUDE:
|
||||
flight_mode = "RATTITUDE";
|
||||
break;
|
||||
}
|
||||
|
||||
return flight_mode;
|
||||
|
||||
@@ -182,10 +182,6 @@ bool CRSFTelemetry::send_flight_mode()
|
||||
case vehicle_status_s::NAVIGATION_STATE_STAB:
|
||||
flight_mode = "Stabilized";
|
||||
break;
|
||||
|
||||
case vehicle_status_s::NAVIGATION_STATE_RATTITUDE:
|
||||
flight_mode = "Rattitude";
|
||||
break;
|
||||
}
|
||||
|
||||
return crsf_send_telemetry_flight_mode(_uart_fd, flight_mode);
|
||||
|
||||
@@ -115,8 +115,6 @@ uint16_t get_telemetry_flight_mode(int px4_flight_mode)
|
||||
|
||||
case 15: return 20; // stabilized
|
||||
|
||||
case 16: return 21; // rattitude
|
||||
|
||||
case 17: return 25; // takeoff
|
||||
|
||||
case 8:
|
||||
|
||||
Reference in New Issue
Block a user