Skip to content

Commit

Permalink
ArduCopterSoloAPI: Send Stepped time
Browse files Browse the repository at this point in the history
Earlier was sending wall-clock time
  • Loading branch information
rajat2004 committed Jun 13, 2019
1 parent b0e145a commit 205515e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class ArduCopterSoloApi : public MavLinkMultirotorApi
// const auto& baro_output = getBarometer()->getOutput();

SensorMessage packet;
packet.timestamp = Utils::getTimeSinceEpochNanos() / 1000;
// packet.timestamp = Utils::getTimeSinceEpochNanos() / 1000;
packet.timestamp = static_cast<uint64_t>(msr::airlib::ClockFactory::get()->nowNanos() / 1.0E3);
packet.latitude = gps_output.gnss.geo_point.latitude;
packet.longitude = gps_output.gnss.geo_point.longitude;
packet.altitude = gps_output.gnss.geo_point.altitude;
Expand Down

0 comments on commit 205515e

Please sign in to comment.