|
|
|
@ -27,12 +27,12 @@ const AP_Param::GroupInfo AC_ZR_App::var_info[] = {
@@ -27,12 +27,12 @@ const AP_Param::GroupInfo AC_ZR_App::var_info[] = {
|
|
|
|
|
// @User: zrzk
|
|
|
|
|
AP_GROUPINFO("_TYPE", 0, AC_ZR_App, _type, 1), |
|
|
|
|
|
|
|
|
|
AP_GROUPINFO("_SYS_TYPE", 1, AC_ZR_App, sysid_type, 0 ), |
|
|
|
|
AP_GROUPINFO("_SYS_ID", 2, AC_ZR_App, sysid_board_id, 98765432U), |
|
|
|
|
AP_GROUPINFO("_SYS_DL1", 3, AC_ZR_App, sysid_dl1, 0x8175), |
|
|
|
|
AP_GROUPINFO("_SYS_DL2", 4, AC_ZR_App, sysid_dl2, 0x6fda), |
|
|
|
|
AP_GROUPINFO("_SYS_DL3", 5, AC_ZR_App, sysid_dl3, 0xf38f), |
|
|
|
|
AP_GROUPINFO("_SYS_DL4", 6, AC_ZR_App, sysid_dl4, 0xbf48), |
|
|
|
|
// AP_GROUPINFO("_SYS_TYPE", 1, AC_ZR_App, sysid_type, 0 ),
|
|
|
|
|
// AP_GROUPINFO("_SYS_ID", 2, AC_ZR_App, sysid_board_id, 98765432U),
|
|
|
|
|
// AP_GROUPINFO("_SYS_DL1", 3, AC_ZR_App, sysid_dl1, 0x8175),
|
|
|
|
|
// AP_GROUPINFO("_SYS_DL2", 4, AC_ZR_App, sysid_dl2, 0x6fda),
|
|
|
|
|
// AP_GROUPINFO("_SYS_DL3", 5, AC_ZR_App, sysid_dl3, 0xf38f),
|
|
|
|
|
// AP_GROUPINFO("_SYS_DL4", 6, AC_ZR_App, sysid_dl4, 0xbf48),
|
|
|
|
|
|
|
|
|
|
// @Param: _SL_*
|
|
|
|
|
// @DisplayName: ZR_SL_*
|
|
|
|
@ -40,12 +40,12 @@ const AP_Param::GroupInfo AC_ZR_App::var_info[] = {
@@ -40,12 +40,12 @@ const AP_Param::GroupInfo AC_ZR_App::var_info[] = {
|
|
|
|
|
// @Values: 值单位cm和cm/s
|
|
|
|
|
// @RebootRequired: True
|
|
|
|
|
// @User: zrzk
|
|
|
|
|
AP_GROUPINFO("_SL_ALT_HI", 7, AC_ZR_App, land_slow_alt_high, 3000), |
|
|
|
|
AP_GROUPINFO("_SL_ALT_MI", 8, AC_ZR_App, land_slow_alt_mid, 1500), |
|
|
|
|
AP_GROUPINFO("_SL_ALT_LO", 9, AC_ZR_App, land_slow_alt_low, 150), |
|
|
|
|
AP_GROUPINFO("_SL_SPD_HI", 10, AC_ZR_App, land_slow_speed_dn_high, 150), |
|
|
|
|
AP_GROUPINFO("_SL_SPD_MI", 11, AC_ZR_App, land_slow_speed_dn_mid, 50), |
|
|
|
|
AP_GROUPINFO("_SL_SPD_LO", 12, AC_ZR_App, land_slow_speed_dn_low, 30), |
|
|
|
|
// AP_GROUPINFO("_SL_ALT_HI", 7, AC_ZR_App, land_slow_alt_high, 3000),
|
|
|
|
|
// AP_GROUPINFO("_SL_ALT_MI", 8, AC_ZR_App, land_slow_alt_mid, 1500),
|
|
|
|
|
// AP_GROUPINFO("_SL_ALT_LO", 9, AC_ZR_App, land_slow_alt_low, 150),
|
|
|
|
|
// AP_GROUPINFO("_SL_SPD_HI", 10, AC_ZR_App, land_slow_speed_dn_high, 150),
|
|
|
|
|
// AP_GROUPINFO("_SL_SPD_MI", 11, AC_ZR_App, land_slow_speed_dn_mid, 50),
|
|
|
|
|
// AP_GROUPINFO("_SL_SPD_LO", 12, AC_ZR_App, land_slow_speed_dn_low, 30),
|
|
|
|
|
|
|
|
|
|
AP_GROUPEND |
|
|
|
|
}; |
|
|
|
@ -61,7 +61,7 @@ AC_ZR_App::AC_ZR_App()
@@ -61,7 +61,7 @@ AC_ZR_App::AC_ZR_App()
|
|
|
|
|
} |
|
|
|
|
_singleton = this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
|
/**
|
|
|
|
|
* @brief 从参数中解析注册到期时间 |
|
|
|
|
*
|
|
|
|
@ -251,3 +251,4 @@ uint8_t AC_ZR_App::get_battery_capacity(uint8_t type,float volt)
@@ -251,3 +251,4 @@ uint8_t AC_ZR_App::get_battery_capacity(uint8_t type,float volt)
|
|
|
|
|
}
|
|
|
|
|
return bat_cnt; |
|
|
|
|
} |
|
|
|
|
#endif |