|
|
|
@ -1420,6 +1420,40 @@ void Vehicle::_setCoordinateValid(bool coordinateValid)
@@ -1420,6 +1420,40 @@ void Vehicle::_setCoordinateValid(bool coordinateValid)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QString Vehicle::vehicleTypeName() const { |
|
|
|
|
static QMap<int, QString> typeNames = { |
|
|
|
|
{ MAV_TYPE_GENERIC, tr("Generic micro air vehicle" )}, |
|
|
|
|
{ MAV_TYPE_FIXED_WING, tr("Fixed wing aircraft")}, |
|
|
|
|
{ MAV_TYPE_QUADROTOR, tr("Quadrotor")}, |
|
|
|
|
{ MAV_TYPE_COAXIAL, tr("Coaxial helicopter")}, |
|
|
|
|
{ MAV_TYPE_HELICOPTER, tr("Normal helicopter with tail rotor.")}, |
|
|
|
|
{ MAV_TYPE_ANTENNA_TRACKER, tr("Ground installation")}, |
|
|
|
|
{ MAV_TYPE_GCS, tr("Operator control unit / ground control station")}, |
|
|
|
|
{ MAV_TYPE_AIRSHIP, tr("Airship, controlled")}, |
|
|
|
|
{ MAV_TYPE_FREE_BALLOON, tr("Free balloon, uncontrolled")}, |
|
|
|
|
{ MAV_TYPE_ROCKET, tr("Rocket")}, |
|
|
|
|
{ MAV_TYPE_GROUND_ROVER, tr("Ground rover")}, |
|
|
|
|
{ MAV_TYPE_SURFACE_BOAT, tr("Surface vessel, boat, ship")}, |
|
|
|
|
{ MAV_TYPE_SUBMARINE, tr("Submarine")}, |
|
|
|
|
{ MAV_TYPE_HEXAROTOR, tr("Hexarotor")}, |
|
|
|
|
{ MAV_TYPE_OCTOROTOR, tr("Octorotor")}, |
|
|
|
|
{ MAV_TYPE_TRICOPTER, tr("Octorotor")}, |
|
|
|
|
{ MAV_TYPE_FLAPPING_WING, tr("Flapping wing")}, |
|
|
|
|
{ MAV_TYPE_KITE, tr("Flapping wing")}, |
|
|
|
|
{ MAV_TYPE_ONBOARD_CONTROLLER, tr("Onboard companion controller")}, |
|
|
|
|
{ MAV_TYPE_VTOL_DUOROTOR, tr("Two-rotor VTOL using control surfaces in vertical operation in addition. Tailsitter")}, |
|
|
|
|
{ MAV_TYPE_VTOL_QUADROTOR, tr("Quad-rotor VTOL using a V-shaped quad config in vertical operation. Tailsitter")}, |
|
|
|
|
{ MAV_TYPE_VTOL_TILTROTOR, tr("Tiltrotor VTOL")}, |
|
|
|
|
{ MAV_TYPE_VTOL_RESERVED2, tr("VTOL reserved 2")}, |
|
|
|
|
{ MAV_TYPE_VTOL_RESERVED3, tr("VTOL reserved 3")}, |
|
|
|
|
{ MAV_TYPE_VTOL_RESERVED4, tr("VTOL reserved 4")}, |
|
|
|
|
{ MAV_TYPE_VTOL_RESERVED5, tr("VTOL reserved 5")}, |
|
|
|
|
{ MAV_TYPE_GIMBAL, tr("Onboard gimbal")}, |
|
|
|
|
{ MAV_TYPE_ADSB, tr("Onboard ADSB peripheral")}, |
|
|
|
|
}; |
|
|
|
|
return typeNames[_vehicleType]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// Returns the string to speak to identify the vehicle
|
|
|
|
|
QString Vehicle::_vehicleIdSpeech(void) |
|
|
|
|
{ |
|
|
|
|