|
|
|
@ -161,7 +161,7 @@ void AP_ADSB::deinit(void)
@@ -161,7 +161,7 @@ void AP_ADSB::deinit(void)
|
|
|
|
|
void AP_ADSB::update(void) |
|
|
|
|
{ |
|
|
|
|
// update _my_loc
|
|
|
|
|
if (!_ahrs.get_position(_my_loc)) { |
|
|
|
|
if (!AP::ahrs().get_position(_my_loc)) { |
|
|
|
|
_my_loc.zero(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -506,7 +506,7 @@ void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan)
@@ -506,7 +506,7 @@ void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan)
|
|
|
|
|
const uint64_t gps_time = gps.time_epoch_usec(); |
|
|
|
|
const uint32_t utcTime = gps_time / 1000000ULL; |
|
|
|
|
|
|
|
|
|
const AP_Baro &baro = _ahrs.get_baro(); |
|
|
|
|
const AP_Baro &baro = AP::ahrs().get_baro(); |
|
|
|
|
int32_t altPres = INT_MAX; |
|
|
|
|
if (baro.healthy()) { |
|
|
|
|
// Altitude difference between 101325 (Pascals) and current pressure. Result in millimeters
|
|
|
|
|