AP_NavEKF3: make coreBetterScore const

This commit is contained in:
Peter Barker 2020-10-30 12:48:32 +11:00 committed by Andrew Tridgell
parent 84c92b717f
commit fc49b55b85
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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;