Skip to content

Commit

Permalink
AP_ADSB: cleanup
Browse files Browse the repository at this point in the history
non-functional change
  • Loading branch information
magicrub committed Feb 22, 2017
1 parent 5adbf9b commit 76dabf2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions libraries/AP_ADSB/AP_ADSB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,6 @@ void AP_ADSB::send_adsb_vehicle(const mavlink_channel_t chan)

void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan)
{
// --------------
// Knowns
AP_GPS gps = _ahrs.get_gps();
Vector3f gps_velocity = gps.velocity();

Expand Down Expand Up @@ -504,20 +502,10 @@ void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan)
state |= UAVIONIX_ADSB_OUT_DYNAMIC_STATE_ON_GROUND;
}



// --------------
// Not Sure
uint32_t utcTime = UINT_MAX; // uint32_t utcTime,
// TODO: confirm this sets utcTime correctly
const uint64_t gps_time = gps.time_epoch_usec();
utcTime = gps_time / 1000000ULL;


const uint32_t utcTime = gps_time / 1000000ULL;

// --------------
// Unknowns
// TODO: implement http://www.srh.noaa.gov/images/epz/wxcalc/pressureAltitude.pdf
AP_Baro baro = _ahrs.get_baro();
int32_t altPres = INT_MAX;
if (baro.healthy()) {
Expand Down

0 comments on commit 76dabf2

Please sign in to comment.