Generation 3 of the Harp project

Dependencies:   Servo TMP36 GZ buffered-serial1 chan_fatfs_sd nmea_parser watchdog mbed-rtos mbed

Fork of HARP2 by Tyler Weaver

Revision:
4:d47805009bbd
Child:
5:8444ec4245e7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/openLog/openLog.cpp	Thu Feb 23 04:24:23 2012 +0000
@@ -0,0 +1,17 @@
+#include "openLog.h"
+
+Logger::Logger(PinName tx, PinName rx, PinName reset) : _openLog(tx, rx), _reset_pin(reset) {
+    _openLog.baud(9600);
+    _reset_pin.write(1);
+}
+
+void Logger::newFile(void) {
+    _reset_pin = 0;
+}
+
+int Logger::write(char* data) {
+    if(_reset_pin == 0) // if reset pin was just set
+        _reset_pin = 1;
+    
+    _openLog.printf(data);
+}
\ No newline at end of file