|
|
|
@ -28,6 +28,13 @@
@@ -28,6 +28,13 @@
|
|
|
|
|
#define GOBJECTVARPTR(v, name, var_info_ptr) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, (const void *)&copter.v, {group_info_ptr : var_info_ptr}, AP_PARAM_FLAG_POINTER | AP_PARAM_FLAG_INFO_POINTER } |
|
|
|
|
#define GOBJECTN(v, pname, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## pname, (const void *)&copter.v, {group_info : class::var_info} } |
|
|
|
|
|
|
|
|
|
#if FRAME_CONFIG == HELI_FRAME |
|
|
|
|
// 6 here is AP_Motors::MOTOR_FRAME_HELI
|
|
|
|
|
#define DEFAULT_FRAME_CLASS 6 |
|
|
|
|
#else |
|
|
|
|
#define DEFAULT_FRAME_CLASS 0 |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
const AP_Param::Info Copter::var_info[] = { |
|
|
|
|
// @Param: SYSID_SW_MREV
|
|
|
|
|
// @DisplayName: Eeprom format version number
|
|
|
|
@ -819,7 +826,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
@@ -819,7 +826,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
|
|
|
|
// @Values: 0:Undefined, 1:Quad, 2:Hexa, 3:Octa, 4:OctaQuad, 5:Y6, 6:Heli, 7:Tri, 8:SingleCopter, 9:CoaxCopter, 10:BiCopter, 11:Heli_Dual, 12:DodecaHexa, 13:HeliQuad
|
|
|
|
|
// @User: Standard
|
|
|
|
|
// @RebootRequired: True
|
|
|
|
|
AP_GROUPINFO("FRAME_CLASS", 15, ParametersG2, frame_class, 0), |
|
|
|
|
AP_GROUPINFO("FRAME_CLASS", 15, ParametersG2, frame_class, DEFAULT_FRAME_CLASS), |
|
|
|
|
|
|
|
|
|
// @Group: SERVO
|
|
|
|
|
// @Path: ../libraries/SRV_Channel/SRV_Channels.cpp
|
|
|
|
|