Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
c6ee948d
Commit
c6ee948d
authored
12 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
AP_GPS: added get_lag method to return expected lag from the GPS.
parent
53aced1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/AP_GPS/AP_GPS_UBLOX.h
+2
-0
2 additions, 0 deletions
libraries/AP_GPS/AP_GPS_UBLOX.h
libraries/AP_GPS/GPS.h
+2
-0
2 additions, 0 deletions
libraries/AP_GPS/GPS.h
with
4 additions
and
0 deletions
libraries/AP_GPS/AP_GPS_UBLOX.h
+
2
−
0
View file @
c6ee948d
...
@@ -35,6 +35,8 @@ public:
...
@@ -35,6 +35,8 @@ public:
static
const
prog_char
_ublox_set_binary
[];
static
const
prog_char
_ublox_set_binary
[];
static
const
uint8_t
_ublox_set_binary_size
;
static
const
uint8_t
_ublox_set_binary_size
;
float
get_lag
()
{
return
0.5
;
}
// ublox lag is lower than the default 1second
private
:
private
:
// u-blox UBX protocol essentials
// u-blox UBX protocol essentials
// XXX this is being ignored by the compiler #pragma pack(1)
// XXX this is being ignored by the compiler #pragma pack(1)
...
...
This diff is collapsed.
Click to expand it.
libraries/AP_GPS/GPS.h
+
2
−
0
View file @
c6ee948d
...
@@ -135,6 +135,8 @@ public:
...
@@ -135,6 +135,8 @@ public:
return
_last_ground_speed_cm
*
0.01
;
return
_last_ground_speed_cm
*
0.01
;
}
}
// the expected lag (in seconds) in the position and velocity readings from the gps
virtual
float
get_lag
()
{
return
1.0
;
}
// the time we got our last fix in system milliseconds
// the time we got our last fix in system milliseconds
uint32_t
last_fix_time
;
uint32_t
last_fix_time
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment