mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF3: make coreBetterScore const
This commit is contained in:
parent
84c92b717f
commit
fc49b55b85
|
@ -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];
|
||||
|
|
|
@ -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…
Reference in New Issue