Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of football_project by
Diff: proto_code.cpp
- Revision:
- 53:c1c3e65b4542
- Parent:
- 52:060fdec99780
- Child:
- 54:2878d62714d6
--- a/proto_code.cpp Thu Jan 14 05:27:44 2016 +0000
+++ b/proto_code.cpp Sat Jan 16 00:36:20 2016 +0000
@@ -210,13 +210,13 @@
if(last_state != state)
{
if(state == ACTIVE_TARGET)
- DEBUG("State is ACTIVE_TARGET\r\n");
+ SL_DEBUG("State is ACTIVE_TARGET\r\n");
if(state == IDLE)
- DEBUG("State is IDLE\r\n");
+ SL_DEBUG("State is IDLE\r\n");
if(state == FAIL)
- DEBUG("State is FAIL\r\n");
+ SL_DEBUG("State is FAIL\r\n");
if(state == SUCCESS)
- DEBUG("State is SUCCESS\r\n");
+ SL_DEBUG("State is SUCCESS\r\n");
}
last_state = state;
@@ -259,7 +259,7 @@
if(message == 'f')
{ // Fail
//serial.printf("Fail!\n");
- DEBUG("FAIL\r\n");
+ SL_DEBUG("FAIL\r\n");
/// ta.post_color(fail_colour);
ta.pulse(25,200,3000,fail_colour);
state = FAIL;
@@ -289,7 +289,7 @@
if(message == 'q')
{ // Quit
- DEBUG("Clear!\r\n");
+ SL_DEBUG("Clear!\r\n");
ta.pulse_off();
// ta.mask_color(idle_colour);
state = IDLE;
@@ -332,7 +332,7 @@
}
else if(timer > timeout && !penalty)
{
- DEBUG("PEN\r\n");
+ SL_DEBUG("PEN\r\n");
//serial.printf("Penalty!\n");
penalty = true;
ta.pulse(350,600,~0L,pen_colour);
@@ -340,7 +340,7 @@
}
else if(timer > ((timeout*3)/4) && !warning)
{
- DEBUG("WARN\r\n");
+ SL_DEBUG("WARN\r\n");
//serial.printf("Warning!\n");
warning = true;
ta.pulse(350,750,~0L,warn_colour);
