summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2013-05-02 18:42:22 +0200
committerFlorent Duchon2013-05-02 22:52:50 +0200
commit6e8748f40cb53eb4c3b8b3e812f2bd781dca3a59 (patch)
treedaf805aaad936a1fce7630849219e23afb1a8ab6 /digital/beacon
parent6015e0c83183d0641ea151dbd379d2d2df08bad2 (diff)
digital/beacon: add debug command for ZB
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/debug_avr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/digital/beacon/src/debug_avr.c b/digital/beacon/src/debug_avr.c
index 7e34de1d..e67f401d 100644
--- a/digital/beacon/src/debug_avr.c
+++ b/digital/beacon/src/debug_avr.c
@@ -138,6 +138,11 @@ void usartRXCallback(uint16_t bytesToRead)
break;
case '0':
// network_send_data(NETWORK_RESET,0x1);
+ network_send_reset(0xFFFF);
+ break;
+ case '1':
+ // network_send_data(NETWORK_RESET,0x1);
+ network_send_start_calibration();
break;
case 'w':
motor_set_target_speed(motor_get_target_speed()-1);
@@ -147,6 +152,9 @@ void usartRXCallback(uint16_t bytesToRead)
motor_set_target_speed(motor_get_target_speed()+1);
uprintf("target speed = %d\r\n",motor_get_target_speed());
break;
+ case 'v':
+ servo_start_wave_task();
+ break;
case 'f':
if(debug_network_enable == 1)
{