From 3a92fff971f3b6fad45f7a4112cf7a316e20ead5 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Fri, 17 Nov 2023 10:24:51 -0300 Subject: [PATCH] Allow usage with Copter-like vehicles --- src/libs/vehicle/vehicle-factory.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libs/vehicle/vehicle-factory.ts b/src/libs/vehicle/vehicle-factory.ts index 5fe3384d2..f3534a860 100644 --- a/src/libs/vehicle/vehicle-factory.ts +++ b/src/libs/vehicle/vehicle-factory.ts @@ -117,6 +117,15 @@ function createVehicleFromMessage(message: Uint8Array): void { case MavType.MAV_TYPE_FIXED_WING: VehicleFactory.createVehicle(Vehicle.Firmware.ArduPilot, Vehicle.Type.Plane) break + case MavType.MAV_TYPE_TRICOPTER: + case MavType.MAV_TYPE_COAXIAL: + case MavType.MAV_TYPE_HEXAROTOR: + case MavType.MAV_TYPE_HELICOPTER: + case MavType.MAV_TYPE_OCTOROTOR: + case MavType.MAV_TYPE_DODECAROTOR: + case MavType.MAV_TYPE_QUADROTOR: + VehicleFactory.createVehicle(Vehicle.Firmware.ArduPilot, Vehicle.Type.Copter) + break default: console.warn(`Vehicle type not supported: ${system_id}/${component_id}: ${heartbeat.mavtype.type}`) }