mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-15 14:53:32 +08:00
AP_Periph: move streamrate parameters to GCS_MAVLINK base class
This commit is contained in:
committed by
Peter Barker
parent
baa7403c4c
commit
ab06c5766d
@@ -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();
|
||||
|
||||
@@ -58,9 +58,8 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
GCS_MAVLINK_Periph *new_gcs_mavlink_backend(GCS_MAVLINK_Parameters ¶ms,
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user