Rover: correct initialisation of PrecLand buffers

this value determines the size of buffers allocated.

Too high and you waste RAM.  Too low and you probably won't store data correctly.
This commit is contained in:
Peter Barker 2024-09-22 13:46:09 +10:00 committed by Randy Mackay
parent dc0941ac09
commit fd2fd70a8a

View File

@ -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()