diff --git a/APMrover2/Parameters.cpp b/APMrover2/Parameters.cpp index 0732fce4c8..3b4c606818 100644 --- a/APMrover2/Parameters.cpp +++ b/APMrover2/Parameters.cpp @@ -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 diff --git a/AntennaTracker/Parameters.cpp b/AntennaTracker/Parameters.cpp index ed262ea8dd..7f5695aad2 100644 --- a/AntennaTracker/Parameters.cpp +++ b/AntennaTracker/Parameters.cpp @@ -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 diff --git a/ArduCopter/Parameters.cpp b/ArduCopter/Parameters.cpp index 9e3c9ecc6d..8df3355bf0 100644 --- a/ArduCopter/Parameters.cpp +++ b/ArduCopter/Parameters.cpp @@ -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 diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 10deae4963..4461359fb6 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -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 diff --git a/Tools/autotest/param_metadata/param.py b/Tools/autotest/param_metadata/param.py index 804ce25a9f..f36f100a1d 100644 --- a/Tools/autotest/param_metadata/param.py +++ b/Tools/autotest/param_metadata/param.py @@ -24,7 +24,9 @@ known_param_fields = [ 'Increment', 'User', 'RebootRequired', - 'Bitmask' + 'Bitmask', + 'Volatile', + 'ReadOnly' ] required_param_fields = [ diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index 5ad74c9fe4..fa9bff025f 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -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