Open NoahSprenger opened 1 year ago
This is still not a great solution. Ideally I can wait 10 minutes after the vehicle finds it is not moving. Also I doubt +- 0.25 is small enough.
I could take an average over say 2000 points since 2000 * 250 ms ~= 8 minutes and if this average is within an acceptable range, I can safely assume that the vehicle has landed.
Ignore the previous, I act like I have infinite memory and to assume time between messages is not a solid implementation.
Or just use a timer :) see the ATSAMDHAL TimerCounter.
Turns out that +- 4m/s does not mean that the vehicle has landed :100: :rocket: :fire: Oops...