Copter : add SURFTRAK_MODE parameter

Added a parameter which will be used to set the surface to be tracked in surface tracking.

Co-Authored-By: Peter Hall <33176108+IamPete1@users.noreply.github.com>
This commit is contained in:
Shiv Tyagi 2021-10-13 10:41:06 +05:30 committed by Randy Mackay
parent 0cae113521
commit e1ded4e3f6
2 changed files with 8 additions and 0 deletions

View File

@ -1103,6 +1103,13 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @User: Advanced
AP_GROUPINFO("PILOT_Y_EXPO", 50, ParametersG2, pilot_y_expo, PILOT_Y_EXPO_DEFAULT),
// @Param: SURFTRAK_MODE
// @DisplayName: Surface Tracking Mode
// @Description: set which surface to track in surface tracking
// @Values: 0:Do not track, 1:Ground, 2:Ceiling
// @User: Advanced
AP_GROUPINFO("SURFTRAK_MODE", 51, ParametersG2, surftrak_mode, (uint8_t)Copter::SurfaceTracking::Surface::GROUND),
AP_GROUPEND
};

View File

@ -666,6 +666,7 @@ public:
AP_Float pilot_y_rate;
AP_Float pilot_y_expo;
AP_Int8 surftrak_mode;
};
extern const AP_Param::Info var_info[];