Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
38:76e49d045a3b
Parent:
33:0fa936c5a098
Child:
39:b1f864b71318
diff -r 8f15b14d6994 -r 76e49d045a3b TA.cpp
--- a/TA.cpp	Wed Jan 06 22:19:10 2016 +0000
+++ b/TA.cpp	Fri Jan 08 19:13:02 2016 +0000
@@ -247,7 +247,7 @@
 
 bool TA::sendRaw(uint8_t *message, uint8_t len, uint8_t cone)
 {
-
+    radio.send(cone, message, len);
     return true;    
 }
 
@@ -277,7 +277,7 @@
     cap_enable = 1;
     wait_ms(100);
     cap_enable = 0;
-    writeToPhone("toggled cap sense power\r\n");
+    writeToPhone("TCP\r\n");
     //Serial.println(F("toggled cap sense power"));
   }
 }
@@ -356,6 +356,7 @@
     }
   }
 
+/*
   if(!waiting_for_ack && radio_receive_complete())
   {
     //if(radio.CRCPass())
@@ -375,6 +376,7 @@
       //Serial.println(F("Sent ACK"));
     }
   }
+  */
 
   //if(index > 4999 || waiting_for_ack){
   if(waiting_for_ack){
@@ -494,7 +496,7 @@
   if(!current && last) sensor_hyst_start = millis();
   last = current;
 
-  return (current && (millis() - activated_start > 1000))?true:false;
+  return (current && (millis() - activated_start > 4000))?true:false;
 
 }