AP_ADSB: ensure stack allocation Location is initialised

This commit is contained in:
Andrew Tridgell 2015-11-23 19:48:57 +11:00
parent f9e865ef5e
commit ce1b68cce8
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void AP_ADSB::perform_threat_detection(void)
*/
Location AP_ADSB::get_location(const adsb_vehicle_t &vehicle) const
{
Location loc;
Location loc {};
loc.alt = vehicle.info.altitude * 100;
loc.lat = vehicle.info.lat * 1e7;
loc.lng = vehicle.info.lon * 1e7;