mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
AP_NavEKF2: make coreBetterScore const
This commit is contained in:
parent
b225ae43ab
commit
84c92b717f
@ -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];
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user