Skip to content

Commit

Permalink
wip hack
Browse files Browse the repository at this point in the history
  • Loading branch information
goasChris committed Nov 28, 2024
1 parent da667a6 commit 56c4e5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/vehicle/ardupilot/ardupilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,9 @@ export abstract class ArduPilotVehicle<Modes> extends Vehicle.AbstractVehicle<Mo
const position = mavlink_message.message as Message.GlobalPositionInt
this._coordinates.precision = 1
this._coordinates.altitude = position.alt / 1000 // (mm to meters)
this._coordinates.latitude = position.lat / 1e7 // DegE7 to Deg
this._coordinates.longitude = position.lon / 1e7 // DegE7 to Deg
this._altitude.msl = position.alt / 1000 // evil :)
this._coordinates.latitude = position.lat / 1000 // DegE7 to Deg evil
this._coordinates.longitude = position.lon / 100 // DegE7 to Deg unknown
this.onPosition.emit()
this._velocity.x = position.vx / 100 // Convert cm/s to m/s
this._velocity.y = position.vy / 100 // Convert cm/s to m/s
Expand Down

0 comments on commit 56c4e5b

Please sign in to comment.