Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/ArduCopter/UserParameters.cpp
9417 views
1
#include "UserParameters.h"
2
#include "config.h"
3
4
#if USER_PARAMS_ENABLED
5
// "USR" + 13 chars remaining for param name
6
const AP_Param::GroupInfo UserParameters::var_info[] = {
7
8
// Put your parameters definition here
9
// Note the maximum length of parameter name is 13 chars
10
AP_GROUPINFO("_INT8", 0, UserParameters, _int8, 0),
11
AP_GROUPINFO("_INT16", 1, UserParameters, _int16, 0),
12
AP_GROUPINFO("_FLOAT", 2, UserParameters, _float, 0),
13
14
AP_GROUPEND
15
};
16
17
UserParameters::UserParameters()
18
{
19
AP_Param::setup_object_defaults(this, var_info);
20
}
21
#endif // USER_PARAMS_ENABLED
22
23