AP_BoardConfig: add user-defined serial number

new param: BRD_SERIAL_NUM
// @Description: User-defined serial number of this vehicle, it can be any arbitrary number you want and has no effect on the autopilot
// @Range: -32767 to 32768 (any 16bit signed number)
This commit is contained in:
Tom Pittenger 2015-04-29 19:02:27 -07:00 committed by Andrew Tridgell
parent 281f6d9caa
commit 457d3be4d7
2 changed files with 9 additions and 0 deletions

View File

@ -78,6 +78,13 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] PROGMEM = {
#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#endif
// @Param: SERIAL_NUM
// @DisplayName: User-defined serial number
// @Description: User-defined serial number of this vehicle, it can be any arbitrary number you want and has no effect on the autopilot
// @Range: -32767 to 32768 (any 16bit signed number)
// @User: Standard
AP_GROUPINFO("SERIAL_NUM", 5, AP_BoardConfig, vehicleSerialNumber, 0),
AP_GROUPEND
};

View File

@ -21,6 +21,8 @@ public:
static const struct AP_Param::GroupInfo var_info[];
private:
AP_Int16 vehicleSerialNumber;
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
AP_Int8 _pwm_count;
AP_Int8 _ser1_rtscts;