Browse Source

maybe resetting reinit_prediction would help?

Cary Sandvig 25 năm trước cách đây
mục cha
commit
21fa9cbae5
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      panda/src/testbed/deadrec_rec.cxx

+ 3 - 1
panda/src/testbed/deadrec_rec.cxx

@@ -406,8 +406,10 @@ inline static void predict_linear(void) {
   static float A_time, B_time;
   static float A_time, B_time;
   static float time = 0.;
   static float time = 0.;
 
 
-  if (reinit_prediction)
+  if (reinit_prediction) {
     state = 0;
     state = 0;
+    reinit_prediction = false;
+  }
   switch (state) {
   switch (state) {
   case 0:
   case 0:
     if (new_telemetry) {
     if (new_telemetry) {