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
1786c364
Commit
1786c364
authored
10 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Tracker: move nav_status lower in AntennaTracker.pde
No functional change
parent
b9eaec8e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AntennaTracker/AntennaTracker.pde
+16
-14
16 additions, 14 deletions
AntennaTracker/AntennaTracker.pde
with
16 additions
and
14 deletions
AntennaTracker/AntennaTracker.pde
+
16
−
14
View file @
1786c364
...
...
@@ -102,20 +102,6 @@ static AP_Scheduler scheduler;
// notification object for LEDs, buzzers etc
static
AP_Notify
notify
;
// tracking status for MAVLink
static
struct
{
float
bearing
;
// bearing to vehicle in centi-degrees
float
distance
;
// distance to vehicle in meters
float
pitch
;
// pitch to vehicle in degrees (positive means vehicle is above tracker, negative means below)
float
altitude_difference
;
// altitude difference between tracker and vehicle in meters. positive value means vehicle is above tracker
float
altitude_offset
;
// offset in meters which is added to tracker altitude to align altitude measurements with vehicle's barometer
bool
manual_control_yaw
:
1
;
// true if tracker yaw is under manual control
bool
manual_control_pitch
:
1
;
// true if tracker pitch is manually controlled
bool
need_altitude_calibration
:
1
;
// true if tracker altitude has not been determined (true after startup)
bool
scan_reverse_pitch
:
1
;
// controls direction of pitch movement in SCAN mode
bool
scan_reverse_yaw
:
1
;
// controls direction of yaw movement in SCAN mode
}
nav_status
;
static
uint32_t
start_time_ms
;
static
bool
usb_connected
;
...
...
@@ -235,6 +221,22 @@ static struct {
float
ground_speed
;
// vehicle's last known ground speed in m/s
}
vehicle
;
////////////////////////////////////////////////////////////////////////////////
// Navigation controller state
////////////////////////////////////////////////////////////////////////////////
static
struct
{
float
bearing
;
// bearing to vehicle in centi-degrees
float
distance
;
// distance to vehicle in meters
float
pitch
;
// pitch to vehicle in degrees (positive means vehicle is above tracker, negative means below)
float
altitude_difference
;
// altitude difference between tracker and vehicle in meters. positive value means vehicle is above tracker
float
altitude_offset
;
// offset in meters which is added to tracker altitude to align altitude measurements with vehicle's barometer
bool
manual_control_yaw
:
1
;
// true if tracker yaw is under manual control
bool
manual_control_pitch
:
1
;
// true if tracker pitch is manually controlled
bool
need_altitude_calibration
:
1
;
// true if tracker altitude has not been determined (true after startup)
bool
scan_reverse_pitch
:
1
;
// controls direction of pitch movement in SCAN mode
bool
scan_reverse_yaw
:
1
;
// controls direction of yaw movement in SCAN mode
}
nav_status
;
/*
scheduler table - all regular tasks apart from the fast_loop()
should be listed here, along with how often they should be called
...
...
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