Skip to content

Commit

Permalink
Allow usage with Copter-like vehicles
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Nov 17, 2023
1 parent 3058eed commit b6efb19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libs/vehicle/vehicle-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand Down

0 comments on commit b6efb19

Please sign in to comment.