maybe resetting reinit_prediction would help?
This commit is contained in:
parent
913ae94c66
commit
21fa9cbae5
|
|
@ -406,8 +406,10 @@ inline static void predict_linear(void) {
|
|||
static float A_time, B_time;
|
||||
static float time = 0.;
|
||||
|
||||
if (reinit_prediction)
|
||||
if (reinit_prediction) {
|
||||
state = 0;
|
||||
reinit_prediction = false;
|
||||
}
|
||||
switch (state) {
|
||||
case 0:
|
||||
if (new_telemetry) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue