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
f2dab172
Commit
f2dab172
authored
10 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Tracker: add YAW_RANGE and PITCH_RANGE params
These capture the yaw and pitch range of movement in degrees
parent
1786c364
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AntennaTracker/Parameters.h
+4
-0
4 additions, 0 deletions
AntennaTracker/Parameters.h
AntennaTracker/Parameters.pde
+18
-0
18 additions, 0 deletions
AntennaTracker/Parameters.pde
AntennaTracker/config.h
+10
-0
10 additions, 0 deletions
AntennaTracker/config.h
with
32 additions
and
0 deletions
AntennaTracker/Parameters.h
+
4
−
0
View file @
f2dab172
...
@@ -88,6 +88,8 @@ public:
...
@@ -88,6 +88,8 @@ public:
k_param_onoff_pitch_mintime
,
k_param_onoff_pitch_mintime
,
k_param_yaw_trim
,
k_param_yaw_trim
,
k_param_pitch_trim
,
k_param_pitch_trim
,
k_param_yaw_range
,
k_param_pitch_range
,
// 136
k_param_channel_yaw
=
200
,
k_param_channel_yaw
=
200
,
k_param_channel_pitch
,
k_param_channel_pitch
,
...
@@ -132,6 +134,8 @@ public:
...
@@ -132,6 +134,8 @@ public:
AP_Float
onoff_pitch_mintime
;
AP_Float
onoff_pitch_mintime
;
AP_Float
yaw_trim
;
AP_Float
yaw_trim
;
AP_Float
pitch_trim
;
AP_Float
pitch_trim
;
AP_Int16
yaw_range
;
// yaw axis total range of motion in degrees
AP_Int16
pitch_range
;
// pitch axis total range of motion in degrees
// Waypoints
// Waypoints
//
//
...
...
This diff is collapsed.
Click to expand it.
AntennaTracker/Parameters.pde
+
18
−
0
View file @
f2dab172
...
@@ -192,6 +192,24 @@ const AP_Param::Info var_info[] PROGMEM = {
...
@@ -192,6 +192,24 @@ const AP_Param::Info var_info[] PROGMEM = {
// @User: Standard
// @User: Standard
GSCALAR
(
pitch_trim
,
"PITCH_TRIM"
,
0
),
GSCALAR
(
pitch_trim
,
"PITCH_TRIM"
,
0
),
// @Param: YAW_RANGE
// @DisplayName: Yaw Angle Range
// @Description: Yaw axis total range of motion in degrees
// @Units: degrees
// @Increment: 0.1
// @Range: 0 360
// @User: Standard
GSCALAR
(
yaw_range
,
"YAW_RANGE"
,
YAW_RANGE_DEFAULT
),
// @Param: PITCH_RANGE
// @DisplayName: Pitch Range
// @Description: Pitch axis total range of motion in degrees
// @Units: degrees
// @Increment: 0.1
// @Range: 0 180
// @User: Standard
GSCALAR
(
pitch_range
,
"PITCH_RANGE"
,
PITCH_RANGE_DEFAULT
),
// barometer ground calibration. The GND_ prefix is chosen for
// barometer ground calibration. The GND_ prefix is chosen for
// compatibility with previous releases of ArduPlane
// compatibility with previous releases of ArduPlane
// @Group: GND_
// @Group: GND_
...
...
This diff is collapsed.
Click to expand it.
AntennaTracker/config.h
+
10
−
0
View file @
f2dab172
...
@@ -55,6 +55,16 @@
...
@@ -55,6 +55,16 @@
# define SERIAL2_BUFSIZE 256
# define SERIAL2_BUFSIZE 256
#endif
#endif
//////////////////////////////////////////////////////////////////////////////
// yaw and pitch axis angle range defaults
//
#ifndef YAW_RANGE_DEFAULT
# define YAW_RANGE_DEFAULT 360
#endif
#ifndef PITCH_RANGE_DEFAULT
# define PITCH_RANGE_DEFAULT 180
#endif
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Tracking definitions
// Tracking definitions
//
//
...
...
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