Skip to content

Commit

Permalink
Rover: correct initialisation of PrecLand buffers
Browse files Browse the repository at this point in the history
this value determines the size of buffers allocated.

Too high and you waste RAM.  Too low and you probably won't store data correctly.
  • Loading branch information
peterbarker authored and rmackay9 committed Sep 24, 2024
1 parent dc0941a commit fd2fd70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rover/precision_landing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

void Rover::init_precland()
{
rover.precland.init(400);
// scheduler table specifies 400Hz, but we can call it no faster
// than the scheduler loop rate:
rover.precland.init(MIN(400, scheduler.get_loop_rate_hz()));
}

void Rover::update_precland()
Expand Down

0 comments on commit fd2fd70

Please sign in to comment.