mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
281f6d9caa
commit
457d3be4d7
@ -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
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user