Tracker: add YAW_RANGE and PITCH_RANGE params

These capture the yaw and pitch range of movement in degrees
This commit is contained in:
Randy Mackay 2014-10-06 14:51:53 +09:00
parent 1786c36457
commit f2dab17230
3 changed files with 32 additions and 0 deletions

View File

@ -88,6 +88,8 @@ public:
k_param_onoff_pitch_mintime,
k_param_yaw_trim,
k_param_pitch_trim,
k_param_yaw_range,
k_param_pitch_range, // 136
k_param_channel_yaw = 200,
k_param_channel_pitch,
@ -132,6 +134,8 @@ public:
AP_Float onoff_pitch_mintime;
AP_Float yaw_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
//

View File

@ -192,6 +192,24 @@ const AP_Param::Info var_info[] PROGMEM = {
// @User: Standard
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
// compatibility with previous releases of ArduPlane
// @Group: GND_

View File

@ -55,6 +55,16 @@
# define SERIAL2_BUFSIZE 256
#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
//