mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
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:
parent
dc0941ac09
commit
fd2fd70a8a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user