Don Gagne 9 years ago committed by Andrew Tridgell
parent
commit
cae7ea0d13
  1. 6
      APMrover2/Parameters.cpp
  2. 1
      AntennaTracker/Parameters.cpp
  3. 2
      ArduCopter/Parameters.cpp
  4. 1
      ArduPlane/Parameters.cpp
  5. 4
      Tools/autotest/param_metadata/param.py
  6. 4
      libraries/AP_Baro/AP_Baro.cpp

6
APMrover2/Parameters.cpp

@ -13,6 +13,12 @@ @@ -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

1
AntennaTracker/Parameters.cpp

@ -25,6 +25,7 @@ const AP_Param::Info Tracker::var_info[] = { @@ -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

2
ArduCopter/Parameters.cpp

@ -33,6 +33,7 @@ const AP_Param::Info Copter::var_info[] = { @@ -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[] = { @@ -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

1
ArduPlane/Parameters.cpp

@ -24,6 +24,7 @@ const AP_Param::Info Plane::var_info[] = { @@ -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

4
Tools/autotest/param_metadata/param.py

@ -24,7 +24,9 @@ known_param_fields = [ @@ -24,7 +24,9 @@ known_param_fields = [
'Increment',
'User',
'RebootRequired',
'Bitmask'
'Bitmask',
'Volatile',
'ReadOnly'
]
required_param_fields = [

4
libraries/AP_Baro/AP_Baro.cpp

@ -45,6 +45,8 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = { @@ -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[] = { @@ -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…
Cancel
Save