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.
Dependencies: BufferedSerial FRDM-TFC mbed telemetry
Revision 2:74d5233b6284, committed 2016-03-09
- Comitter:
- Overdrivr
- Date:
- Wed Mar 09 15:45:28 2016 +0000
- Parent:
- 1:5a07069e17b6
- Commit message:
- headers include update
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FRDM-TFC-HBRIDGE.lib Wed Mar 09 15:45:28 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/emh203/code/FRDM-TFC/#24430a0d7fd8
--- a/FRDM-TFC.lib Mon Feb 22 21:24:52 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/emh203/code/FRDM-TFC/#24430a0d7fd8
--- a/main.cpp Mon Feb 22 21:24:52 2016 +0000
+++ b/main.cpp Wed Mar 09 15:45:28 2016 +0000
@@ -1,6 +1,6 @@
#include "mbed.h"
-#include "FRDM-TFC/TFC.h"
-#include "telemetry/Telemetry.h"
+#include "TFC.h"
+#include "Telemetry.hpp"
/*
Example of the 'Telemetry' library, a portable communication library for embedded devices.
@@ -15,8 +15,6 @@
Repo : TO BE DONE
*/
-DigitalOut led(LED1);
-
struct TM_state {
float direction;
float throttle;
@@ -42,6 +40,7 @@
// and pass the TM_state data structure to it.
TM.sub(process, &carState);
+ DigitalOut led(LED1);
led = 1;
// Init the TheFreescaleCup shield
@@ -63,12 +62,7 @@
for(;;)
{
- // update telemetry
- if(tm_timer.read_ms() > 50)
- {
- tm_timer.reset();
- TM.update();
- }
+ TM.update();
// update servo control
if(servo_timer.read_ms() > 10)
@@ -85,7 +79,7 @@
}
// publish car state & blink a led
- if(print_timer.read_ms() > 500)
+ if(print_timer.read_ms() > 200)
{
print_timer.reset();
// Publish the car parameters, so we can access them from the computer
--- a/telemetry.lib Mon Feb 22 21:24:52 2016 +0000 +++ b/telemetry.lib Wed Mar 09 15:45:28 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Overdrivr/code/telemetry/#8e3de1a314e1 +http://mbed.org/users/Overdrivr/code/telemetry/#f5e1b079bffd