Skip to content

Commit

Permalink
Fix broken ADSB vehicle code
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Feb 28, 2020
1 parent 412de39 commit e94a608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Vehicle/Vehicle.cc
Expand Up @@ -3878,7 +3878,8 @@ void Vehicle::_handleADSBVehicle(const mavlink_message_t& message)
vehicleInfo.availableFlags = 0;

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.availableFlags |= ADSBVehicle::CallsignAvailable;
Expand Down

0 comments on commit e94a608

Please sign in to comment.