Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
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
Ardupilot
Commits
7649907e
Commit
7649907e
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: run terrain.update() more often
this provides faster checking of mission waypoints
parent
eeb04ba1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ArduPlane/ArduPlane.pde
+8
-2
8 additions, 2 deletions
ArduPlane/ArduPlane.pde
with
8 additions
and
2 deletions
ArduPlane/ArduPlane.pde
+
8
−
2
View file @
7649907e
...
...
@@ -796,7 +796,7 @@ static const AP_Scheduler::Task scheduler_tasks[] PROGMEM = {
#if FRSKY_TELEM_ENABLED == ENABLED
{
telemetry_send
,
10
,
100
},
#endif
{
terrain_update
,
5
,
500
},
};
// setup the var_info table
...
...
@@ -1023,7 +1023,6 @@ static void one_second_loop()
AP_Notify
::
flags
.
armed
=
arming
.
is_armed
()
||
arming
.
arming_required
()
==
AP_Arming
::
NO
;
#if AP_TERRAIN_AVAILABLE
terrain
.
update
();
if
(
should_log
(
MASK_LOG_GPS
))
{
terrain
.
log_terrain_data
(
DataFlash
);
}
...
...
@@ -1048,6 +1047,13 @@ static void compass_save()
}
}
static
void
terrain_update
(
void
)
{
#if AP_TERRAIN_AVAILABLE
terrain
.
update
();
#endif
}
/*
once a second update the airspeed calibration ratio
*/
...
...
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