AP_Periph: move streamrate parameters to GCS_MAVLINK base class

This commit is contained in:
Peter Barker
2025-04-07 10:58:41 +10:00
committed by Peter Barker
parent baa7403c4c
commit ab06c5766d
2 changed files with 2 additions and 44 deletions
-41
View File
@@ -22,47 +22,6 @@
#if HAL_GCS_ENABLED
static const ap_message STREAM_RAW_SENSORS_msgs[] = {
MSG_RAW_IMU
};
static const ap_message STREAM_EXTENDED_STATUS_msgs[] = {
MSG_SYS_STATUS,
MSG_POWER_STATUS,
#if HAL_WITH_MCU_MONITORING
MSG_MCU_STATUS,
#endif
MSG_MEMINFO,
#if AP_GPS_GPS_RAW_INT_SENDING_ENABLED
MSG_GPS_RAW,
#endif
#if AP_GPS_GPS_RTK_SENDING_ENABLED
MSG_GPS_RTK,
#endif
};
static const ap_message STREAM_POSITION_msgs[] = {
#if AP_AHRS_ENABLED
MSG_LOCATION,
MSG_LOCAL_POSITION
#endif
};
static const ap_message STREAM_PARAMS_msgs[] = {
MSG_NEXT_PARAM
};
const struct GCS_MAVLINK::stream_entries GCS_MAVLINK::all_stream_entries[] = {
MAV_STREAM_ENTRY(STREAM_RAW_SENSORS),
MAV_STREAM_ENTRY(STREAM_POSITION),
MAV_STREAM_ENTRY(STREAM_EXTENDED_STATUS),
MAV_STREAM_ENTRY(STREAM_PARAMS),
MAV_STREAM_TERMINATOR // must have this at end of stream_entries
};
const struct AP_Param::GroupInfo GCS_MAVLINK_Parameters::var_info[] = {
AP_GROUPEND
};
uint8_t GCS_MAVLINK_Periph::sysid_my_gcs() const
{
mavlink_system.sysid = gcs().sysid_this_mav();
+2 -3
View File
@@ -58,9 +58,8 @@ public:
protected:
GCS_MAVLINK_Periph *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters &params,
AP_HAL::UARTDriver &uart) override {
return NEW_NOTHROW GCS_MAVLINK_Periph(params, uart);
GCS_MAVLINK_Periph *new_gcs_mavlink_backend(AP_HAL::UARTDriver &uart) override {
return NEW_NOTHROW GCS_MAVLINK_Periph(uart);
}
private: