diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 68c167496ffbcda9d4be33311b8ad6b069f2f7b2..2412e85b165140b3becaacdf9b110e050f3d3b2a 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -968,7 +968,7 @@ void Vehicle::_handleVfrHud(mavlink_message_t& message) _airSpeedFact.setRawValue(qIsNaN(vfrHud.airspeed) ? 0 : vfrHud.airspeed); _groundSpeedFact.setRawValue(qIsNaN(vfrHud.groundspeed) ? 0 : vfrHud.groundspeed); _climbRateFact.setRawValue(qIsNaN(vfrHud.climb) ? 0 : vfrHud.climb); - _throttlePctFact.setRawValue(vfrHud.throttle); + _throttlePctFact.setRawValue(static_cast(vfrHud.throttle)); } void Vehicle::_handleEstimatorStatus(mavlink_message_t& message)