AP_NavEKF2: make coreBetterScore const

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

View File

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

View File

@ -555,7 +555,7 @@ private:
// return true if a new core has a better score than an existing core, including // return true if a new core has a better score than an existing core, including
// checks for alignment // 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: // logging functions shared by cores:
void Log_Write_NKF1(uint8_t core, uint64_t time_us) const; void Log_Write_NKF1(uint8_t core, uint64_t time_us) const;