GCS_MAVLink: make correct_offboard_timestamp_usec_to_ms protected

for use by vehicle code
This commit is contained in:
Andrew Tridgell 2020-07-02 21:02:34 +10:00
parent f9f8822e47
commit 9466e7e71e
1 changed files with 6 additions and 6 deletions

View File

@ -511,6 +511,12 @@ protected:
void manual_override(RC_Channel *c, int16_t value_in, uint16_t offset, float scaler, const uint32_t tnow, bool reversed = false);
/*
correct an offboard timestamp in microseconds to a local time
since boot in milliseconds
*/
uint32_t correct_offboard_timestamp_usec_to_ms(uint64_t offboard_usec, uint16_t payload_size);
private:
// last time we got a non-zero RSSI from RADIO_STATUS
@ -791,12 +797,6 @@ private:
void lock_channel(const mavlink_channel_t chan, bool lock);
/*
correct an offboard timestamp in microseconds to a local time
since boot in milliseconds
*/
uint32_t correct_offboard_timestamp_usec_to_ms(uint64_t offboard_usec, uint16_t payload_size);
mavlink_signing_t signing;
static mavlink_signing_streams_t signing_streams;
static uint32_t last_signing_save_ms;