summaryrefslogtreecommitdiff
path: root/digital
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-11 00:06:35 +0200
committerFlorent Duchon2012-05-11 00:16:45 +0200
commit1a7bb5745976381686a21ad614ed059a5a5fdf6f (patch)
treee9f817028ad313617dc5521ef7f25fcca0a93c80 /digital
parent26c7a6d6a89ceb1a63b12bfd3a9d4e7a3d1ad27b (diff)
digital/beacon: modify debug task display
Diffstat (limited to 'digital')
-rw-r--r--digital/beacon/src/debug_avr.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/digital/beacon/src/debug_avr.c b/digital/beacon/src/debug_avr.c
index c862b5c2..b91ef08d 100644
--- a/digital/beacon/src/debug_avr.c
+++ b/digital/beacon/src/debug_avr.c
@@ -222,14 +222,19 @@ void wheel_start_stop_task(void)
void debug_task(void)
{
uprintf("------------------------- debug TASK -------------------------\r\n");
- uprintf("NWK : status = 0x%x\r\n",network_get_status());
- uprintf("NWK : LQI = %d\r\n",network_get_lqi());
- uprintf("NWK : RSSI = %d\r\n",network_get_rssi());
+ uprintf("## Network\r\n");
+ uprintf("Status : 0x%x - ",network_get_status());
+ uprintf("LQI = %d - ",network_get_lqi());
+ uprintf("RSSI = %d - \r\n",network_get_rssi());
#ifdef TYPE_END
- uprintf("[1] Scanning State = %d -- Value = %d\r\n",servo_get_state(SERVO_1),servo_get_value(SERVO_1));
- 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());
+ uprintf("## Servo\r\n");
+ uprintf("State : [1]=%d [2]=%d - ",servo_get_state(SERVO_1),servo_get_state(SERVO_2));
+ uprintf("Value : [1]=%d [2]=%d\r\n",servo_get_value(SERVO_1),servo_get_value(SERVO_2));
+ uprintf("## Codewheel\r\n");
+ uprintf("Raw = %d - Degree = %f\r\n",codewheel_get_value(),codewheel_convert_angle_raw2degrees(codewheel_get_value()));
+ uprintf("## Calibration\r\n");
+ uprintf("State : %d\r\n",calibration_get_state());
+ uprintf("## Calibration\r\n");
+ uprintf("State : %d\r\n",motor_get_state());
#endif
}