5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-08 17:08:28 -04:00

Copter: set paraam default for user parameters

This commit is contained in:
rishabsingh3003 2022-12-23 11:42:26 +05:30 committed by Tom Pittenger
parent 175c2c950e
commit a57ed97ba1
2 changed files with 11 additions and 6 deletions

View File

@ -11,3 +11,8 @@ const AP_Param::GroupInfo UserParameters::var_info[] = {
AP_GROUPEND AP_GROUPEND
}; };
UserParameters::UserParameters()
{
AP_Param::setup_object_defaults(this, var_info);
}

View File

@ -5,7 +5,7 @@
class UserParameters { class UserParameters {
public: public:
UserParameters() {} UserParameters();
static const struct AP_Param::GroupInfo var_info[]; static const struct AP_Param::GroupInfo var_info[];
// Put accessors to your parameter variables here // Put accessors to your parameter variables here