summaryrefslogtreecommitdiff
path: root/digital/beacon/src/debug_avr.c
diff options
context:
space:
mode:
authorFlorent Duchon2012-04-22 00:10:04 +0200
committerFlorent Duchon2012-05-04 00:06:27 +0200
commit3f1a3107d81a696b9dedc48c1a9bbc8029682c6b (patch)
tree584bf27b4d220eb5ec34aacca4226e69463d3ebd /digital/beacon/src/debug_avr.c
parentfc5732a9d2e0cdda0ac1fbdd6a2626c19ede2461 (diff)
digital/beacon: add motor control to the debug menu & display motor state in the debug task
Diffstat (limited to 'digital/beacon/src/debug_avr.c')
-rw-r--r--digital/beacon/src/debug_avr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/digital/beacon/src/debug_avr.c b/digital/beacon/src/debug_avr.c
index 00568628..284d1fbf 100644
--- a/digital/beacon/src/debug_avr.c
+++ b/digital/beacon/src/debug_avr.c
@@ -32,6 +32,7 @@
#include "codewheel.h"
#include "laser.h"
#include "network.h"
+#include "motor.h"
HAL_UsartDescriptor_t appUsartDescriptor; // USART descriptor (required by stack)
HAL_AppTimer_t debugTimer; // TIMER descripor used by the DEBUG task
@@ -136,6 +137,9 @@ void usartRXCallback(uint16_t bytesToRead)
led_off(2);
led_off(3);
break;
+ case 't':
+ motor_start_stop_control();
+ break;
/* Default */
default :
uprintf(" ?? Unknown command ??\r\n");
@@ -222,5 +226,6 @@ void debug_task(void)
uprintf("[2] Scanning State = %d -- Value = %d\r\n",servo_get_state(SERVO_2),servo_get_value(SERVO_2));
uprintf("CodeWheel = %d\r\n",codewheel_get_value());
uprintf("Calibration state = %d\r\n",calibration_get_state());
+ uprintf("Motor state = %d\r\n",motor_get_state());
#endif
}