ROMFS: MAV_TYPE cleanup

- set MAV_TYPE as a parameter default per vehicle type, or airframe if necessary
 - cleanup MAV_TYPE param metadata and commander helper to only include
what's currently used in PX4
This commit is contained in:
Daniel Agar
2022-03-17 09:28:10 -04:00
parent cde7b1bc41
commit 36e6527013
69 changed files with 107 additions and 216 deletions
+4 -8
View File
@@ -69,16 +69,15 @@
#define VEHICLE_TYPE_COAXIAL 3
#define VEHICLE_TYPE_HELICOPTER 4
#define VEHICLE_TYPE_GROUND_ROVER 10
#define VEHICLE_TYPE_BOAT 11
#define VEHICLE_TYPE_SUBMARINE 12
#define VEHICLE_TYPE_HEXAROTOR 13
#define VEHICLE_TYPE_OCTOROTOR 14
#define VEHICLE_TYPE_TRICOPTER 15
#define VEHICLE_TYPE_VTOL_DUOROTOR 19
#define VEHICLE_TYPE_VTOL_QUADROTOR 20
#define VEHICLE_TYPE_VTOL_TILTROTOR 21
#define VEHICLE_TYPE_VTOL_RESERVED2 22
#define VEHICLE_TYPE_VTOL_RESERVED3 23
#define VEHICLE_TYPE_VTOL_RESERVED4 24
#define VEHICLE_TYPE_VTOL_RESERVED5 25
#define VEHICLE_TYPE_VTOL_RESERVED2 22 // VTOL standard
#define BLINK_MSG_TIME 700000 // 3 fast blinks (in us)
@@ -101,10 +100,7 @@ bool is_vtol(const vehicle_status_s &current_status)
return (current_status.system_type == VEHICLE_TYPE_VTOL_DUOROTOR ||
current_status.system_type == VEHICLE_TYPE_VTOL_QUADROTOR ||
current_status.system_type == VEHICLE_TYPE_VTOL_TILTROTOR ||
current_status.system_type == VEHICLE_TYPE_VTOL_RESERVED2 ||
current_status.system_type == VEHICLE_TYPE_VTOL_RESERVED3 ||
current_status.system_type == VEHICLE_TYPE_VTOL_RESERVED4 ||
current_status.system_type == VEHICLE_TYPE_VTOL_RESERVED5);
current_status.system_type == VEHICLE_TYPE_VTOL_RESERVED2);
}
bool is_vtol_tailsitter(const vehicle_status_s &current_status)