altos: Hack to dump kalman values during idle mode
authorKeith Packard <keithp@keithp.com>
Sun, 11 Oct 2020 05:00:56 +0000 (22:00 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 11 Oct 2020 05:00:56 +0000 (22:00 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_flight.c

index 2142546c9b0737b186cca6f6dce65fa51c8e30ec..c55e55f67f1dbcd49144c67f461b24ffbd55140a 100644 (file)
@@ -200,6 +200,11 @@ ao_flight(void)
                        ao_wakeup(&ao_flight_state);
 
                        break;
+
+               case ao_flight_idle:
+                       printf("accel %ld speed %ld\n", ao_accel, ao_speed);
+                       break;
+
                case ao_flight_pad:
                        /* pad to boost:
                         *