Browse Source

AP_NavEKF3: make send_status_report const

zr-v5.1
Peter Barker 5 years ago committed by Randy Mackay
parent
commit
9ed37e4486
  1. 2
      libraries/AP_NavEKF3/AP_NavEKF3.cpp
  2. 2
      libraries/AP_NavEKF3/AP_NavEKF3.h
  3. 2
      libraries/AP_NavEKF3/AP_NavEKF3_Outputs.cpp
  4. 2
      libraries/AP_NavEKF3/AP_NavEKF3_core.h

2
libraries/AP_NavEKF3/AP_NavEKF3.cpp

@ -1440,7 +1440,7 @@ void NavEKF3::getFilterGpsStatus(int8_t instance, nav_gps_status &status) const @@ -1440,7 +1440,7 @@ void NavEKF3::getFilterGpsStatus(int8_t instance, nav_gps_status &status) const
}
// send an EKF_STATUS_REPORT message to GCS
void NavEKF3::send_status_report(mavlink_channel_t chan)
void NavEKF3::send_status_report(mavlink_channel_t chan) const
{
if (core) {
core[primary].send_status_report(chan);

2
libraries/AP_NavEKF3/AP_NavEKF3.h

@ -335,7 +335,7 @@ public: @@ -335,7 +335,7 @@ public:
void getFilterStatus(int8_t instance, nav_filter_status &status) const;
// send an EKF_STATUS_REPORT message to GCS
void send_status_report(mavlink_channel_t chan);
void send_status_report(mavlink_channel_t chan) const;
// provides the height limit to be observed by the control loops
// returns false if no height limiting is required

2
libraries/AP_NavEKF3/AP_NavEKF3_Outputs.cpp

@ -551,7 +551,7 @@ void NavEKF3_core::getFilterGpsStatus(nav_gps_status &faults) const @@ -551,7 +551,7 @@ void NavEKF3_core::getFilterGpsStatus(nav_gps_status &faults) const
}
// send an EKF_STATUS message to GCS
void NavEKF3_core::send_status_report(mavlink_channel_t chan)
void NavEKF3_core::send_status_report(mavlink_channel_t chan) const
{
// prepare flags
uint16_t flags = 0;

2
libraries/AP_NavEKF3/AP_NavEKF3_core.h

@ -327,7 +327,7 @@ public: @@ -327,7 +327,7 @@ public:
void getFilterStatus(nav_filter_status &status) const;
// send an EKF_STATUS_REPORT message to GCS
void send_status_report(mavlink_channel_t chan);
void send_status_report(mavlink_channel_t chan) const;
// provides the height limit to be observed by the control loops
// returns false if no height limiting is required

Loading…
Cancel
Save