Skip to content

Commit

Permalink
ardupilot: support NAMED_VALUE_INT
Browse files Browse the repository at this point in the history
  • Loading branch information
ES-Alexander authored and rafaellehmkuhl committed Aug 21, 2023
1 parent 8ecfaa7 commit 08fc11d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libs/vehicle/ardupilot/ardupilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ export abstract class ArduPilotVehicle<Modes> extends Vehicle.AbstractVehicle<Mo
break
}

case MAVLinkType.NAMED_VALUE_INT: {
const namedValueIntMessage = mavlink_message.message as Message.NamedValueInt
const messageName = namedValueIntMessage.name.join('').replaceAll('\x00', '')
this._genericVariables[messageName] = namedValueIntMessage.value
this.onGenericVariables.emit()
break
}

default:
break
}
Expand Down

0 comments on commit 08fc11d

Please sign in to comment.