Skip to content

Commit

Permalink
suggestion from peter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbuzz committed Nov 2, 2024
1 parent 52534e4 commit 249bf49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_NavEKF3/AP_NavEKF3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,8 @@ bool NavEKF3::InitialiseFilter(void)
}

// check if there is enough memory to create the EKF cores
uint16_t x = AP::dal().available_memory();
printf("ekf3 stats: avail:%d numcores:%d sizeof:%lu\n",x,num_cores,(unsigned long)(sizeof(NavEKF3_core)*num_cores + 4096));
uint32_t x = AP::dal().available_memory();
printf("ekf3 stats: avail:%lu numcores:%d sizeof:%lu\n",x,num_cores,(unsigned long)(sizeof(NavEKF3_core)*num_cores + 4096));
if (x < (sizeof(NavEKF3_core)*num_cores + 4096)) {
GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "EKF3 not enough memory: %d",(unsigned int)x);
_enable.set(0);
Expand Down

0 comments on commit 249bf49

Please sign in to comment.