diff --git a/ArduSub/Parameters.cpp b/ArduSub/Parameters.cpp index 9df34b9d725..cb23ee880e6 100644 --- a/ArduSub/Parameters.cpp +++ b/ArduSub/Parameters.cpp @@ -708,6 +708,12 @@ const AP_Param::Info Sub::var_info[] = { GOBJECT(rpm_sensor, "RPM", AP_RPM), #endif +#if AP_RSSI_ENABLED + // @Group: RSSI_ + // @Path: ../libraries/AP_RSSI/AP_RSSI.cpp + GOBJECT(rssi, "RSSI_", AP_RSSI), +#endif + // @Group: NTF_ // @Path: ../libraries/AP_Notify/AP_Notify.cpp GOBJECT(notify, "NTF_", AP_Notify), diff --git a/ArduSub/Parameters.h b/ArduSub/Parameters.h index 8150270ef50..ac597f83046 100644 --- a/ArduSub/Parameters.h +++ b/ArduSub/Parameters.h @@ -219,6 +219,9 @@ public: k_param_flight_mode6, k_param_simple_modes, k_param_flight_mode_chan, +#if AP_RSSI_ENABLED + k_param_rssi, +#endif // Acro Mode parameters k_param_acro_yaw_p = 220, // Used in all modes for get_pilot_desired_yaw_rate @@ -366,7 +369,7 @@ public: AP_Int8 flight_mode6; AP_Int8 simple_modes; AP_Int8 flight_mode_chan; -#endif +#endif AP_Float surface_depth; AP_Int8 frame_configuration;