Skip to content

Commit

Permalink
AP_GPS: Fix GSOF delay in PX-1
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed May 10, 2024
1 parent 693151e commit 9f9fbe6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_GPS/AP_GPS_GSOF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ AP_GPS_GSOF::AP_GPS_GSOF(AP_GPS &_gps,
gsofmsg_time = now + 110;
}

bool AP_GPS_GSOF::get_lag(float &lag_sec) const
{
lag_sec = 0.0065;
return true;
}

// Process all bytes available from the stream
//
bool
Expand Down
3 changes: 3 additions & 0 deletions libraries/AP_GPS/AP_GPS_GSOF.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class AP_GPS_GSOF : public AP_GPS_Backend
return AP_GPS::GPS_OK_FIX_3D_RTK_FIXED;
}

// Get lag in seconds.
bool get_lag(float &lag_sec) const override;

// Methods
bool read() override WARN_IF_UNUSED;

Expand Down

0 comments on commit 9f9fbe6

Please sign in to comment.