Browse Source

AP_NavEKF3: make coreBetterScore const

c415-sdk
Peter Barker 4 years ago committed by Andrew Tridgell
parent
commit
fc49b55b85
  1. 2
      libraries/AP_NavEKF3/AP_NavEKF3.cpp
  2. 2
      libraries/AP_NavEKF3/AP_NavEKF3.h

2
libraries/AP_NavEKF3/AP_NavEKF3.cpp

@ -804,7 +804,7 @@ bool NavEKF3::InitialiseFilter(void) @@ -804,7 +804,7 @@ bool NavEKF3::InitialiseFilter(void)
return true if a new core index has a better score than the current
core
*/
bool NavEKF3::coreBetterScore(uint8_t new_core, uint8_t current_core)
bool NavEKF3::coreBetterScore(uint8_t new_core, uint8_t current_core) const
{
const NavEKF3_core &oldCore = core[current_core];
const NavEKF3_core &newCore = core[new_core];

2
libraries/AP_NavEKF3/AP_NavEKF3.h

@ -611,7 +611,7 @@ private: @@ -611,7 +611,7 @@ private:
// return true if a new core has a better score than an existing core, including
// checks for alignment
bool coreBetterScore(uint8_t new_core, uint8_t current_core);
bool coreBetterScore(uint8_t new_core, uint8_t current_core) const;
// logging functions shared by cores:
void Log_Write_XKF1(uint8_t core, uint64_t time_us) const;

Loading…
Cancel
Save