Unverified Commit 1f977cab authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8442 from DonLakeFlyer/ADSBVehicle

Fix broken ADSB vehicle code
parents 412de39c e94a6083
...@@ -3878,7 +3878,8 @@ void Vehicle::_handleADSBVehicle(const mavlink_message_t& message) ...@@ -3878,7 +3878,8 @@ void Vehicle::_handleADSBVehicle(const mavlink_message_t& message)
vehicleInfo.availableFlags = 0; vehicleInfo.availableFlags = 0;
vehicleInfo.location.setLatitude(adsbVehicleMsg.lat / 1e7); vehicleInfo.location.setLatitude(adsbVehicleMsg.lat / 1e7);
vehicleInfo.location.setLatitude(adsbVehicleMsg.lon / 1e7); vehicleInfo.location.setLongitude(adsbVehicleMsg.lon / 1e7);
vehicleInfo.availableFlags |= ADSBVehicle::LocationAvailable;
vehicleInfo.callsign = adsbVehicleMsg.callsign; vehicleInfo.callsign = adsbVehicleMsg.callsign;
vehicleInfo.availableFlags |= ADSBVehicle::CallsignAvailable; vehicleInfo.availableFlags |= ADSBVehicle::CallsignAvailable;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment