mirror of https://github.com/ArduPilot/ardupilot
Add @Volatile, @ReadOnly support
This commit is contained in:
parent
6d9ba8c527
commit
cae7ea0d13
|
@ -13,6 +13,12 @@
|
|||
|
||||
const AP_Param::Info Rover::var_info[] = {
|
||||
GSCALAR(format_version, "FORMAT_VERSION", 1),
|
||||
|
||||
// @Param: SYSID_SW_TYPE
|
||||
// @DisplayName: Software Type
|
||||
// @Description: This is used by the ground station to recognise the software type (eg ArduPlane vs ArduCopter)
|
||||
// @User: Advanced
|
||||
// @ReadOnly: True
|
||||
GSCALAR(software_type, "SYSID_SW_TYPE", Parameters::k_software_type),
|
||||
|
||||
// misc
|
||||
|
|
|
@ -25,6 +25,7 @@ const AP_Param::Info Tracker::var_info[] = {
|
|||
// @Description: This is used by the ground station to recognise the software type (eg ArduPlane vs ArduCopter)
|
||||
// @Values: 0:ArduPlane,4:AntennaTracker,10:Copter,20:Rover
|
||||
// @User: Advanced
|
||||
// @ReadOnly: True
|
||||
GSCALAR(software_type, "SYSID_SW_TYPE", Parameters::k_software_type),
|
||||
|
||||
// @Param: SYSID_THISMAV
|
||||
|
|
|
@ -33,6 +33,7 @@ const AP_Param::Info Copter::var_info[] = {
|
|||
// @DisplayName: Eeprom format version number
|
||||
// @Description: This value is incremented when changes are made to the eeprom format
|
||||
// @User: Advanced
|
||||
// @ReadOnly: True
|
||||
GSCALAR(format_version, "SYSID_SW_MREV", 0),
|
||||
|
||||
// @Param: SYSID_SW_TYPE
|
||||
|
@ -40,6 +41,7 @@ const AP_Param::Info Copter::var_info[] = {
|
|||
// @Description: This is used by the ground station to recognise the software type (eg ArduPlane vs ArduCopter)
|
||||
// @Values: 0:ArduPlane,4:AntennaTracker,10:Copter,20:Rover
|
||||
// @User: Advanced
|
||||
// @ReadOnly: True
|
||||
GSCALAR(software_type, "SYSID_SW_TYPE", Parameters::k_software_type),
|
||||
|
||||
// @Param: SYSID_THISMAV
|
||||
|
|
|
@ -24,6 +24,7 @@ const AP_Param::Info Plane::var_info[] = {
|
|||
// @DisplayName: Software Type
|
||||
// @Description: This is used by the ground station to recognise the software type (eg ArduPlane vs ArduCopter)
|
||||
// @User: Advanced
|
||||
// @ReadOnly: True
|
||||
GSCALAR(software_type, "SYSID_SW_TYPE", Parameters::k_software_type),
|
||||
|
||||
// @Param: SYSID_THISMAV
|
||||
|
|
|
@ -24,7 +24,9 @@ known_param_fields = [
|
|||
'Increment',
|
||||
'User',
|
||||
'RebootRequired',
|
||||
'Bitmask'
|
||||
'Bitmask',
|
||||
'Volatile',
|
||||
'ReadOnly'
|
||||
]
|
||||
|
||||
required_param_fields = [
|
||||
|
|
|
@ -45,6 +45,8 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = {
|
|||
// @Description: calibrated ground pressure in Pascals
|
||||
// @Units: pascals
|
||||
// @Increment: 1
|
||||
// @ReadOnly: True
|
||||
// @Volatile: True
|
||||
AP_GROUPINFO("ABS_PRESS", 2, AP_Baro, sensors[0].ground_pressure, 0),
|
||||
|
||||
// @Param: TEMP
|
||||
|
@ -52,6 +54,8 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = {
|
|||
// @Description: calibrated ground temperature in degrees Celsius
|
||||
// @Units: degrees celsius
|
||||
// @Increment: 1
|
||||
// @ReadOnly: True
|
||||
// @Volatile: True
|
||||
AP_GROUPINFO("TEMP", 3, AP_Baro, sensors[0].ground_temperature, 0),
|
||||
|
||||
// index 4 reserved for old AP_Int8 version in legacy FRAM
|
||||
|
|
Loading…
Reference in New Issue