System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Files at this revision

API Documentation at this revision

Comitter:
martydd3
Date:
Fri Nov 07 21:26:46 2014 +0000
Parent:
23:ebdb30592a4b
Child:
30:91af74a299e1
Commit message:
finally compiles

Changed in this revision

CANController/CANController.c Show diff for this revision Revisions of this file
CANController/CANController.cpp Show annotated file Show diff for this revision Revisions of this file
CANController/CANController.h Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/CANController/CANController.c	Fri Nov 07 21:17:01 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-#include "CANController.h"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CANController/CANController.cpp	Fri Nov 07 21:26:46 2014 +0000
@@ -0,0 +1,29 @@
+#include "CANController.h"
+
+CANController::CANController(){
+    
+};
+
+bool CANController::dc_on(){
+    return dc.is_on();
+};
+
+void CANController::set_dc(bool status){
+    dc.set(status); 
+};
+
+bool CANController::write_contrl(ContrlPinName name, float duty){
+    if(dc.is_on()){
+        
+        return true;
+    } 
+    return false;
+};
+
+void CANController::direct_off(ContrlPinName name, float duty){
+    
+};
+    
+float *CANController::read_control(){
+    return NULL;
+}
\ No newline at end of file
--- a/CANController/CANController.h	Fri Nov 07 21:17:01 2014 +0000
+++ b/CANController/CANController.h	Fri Nov 07 21:26:46 2014 +0000
@@ -6,7 +6,7 @@
 
 enum ContrlPinName{
     FAN1, FAN2, FAN3, PUMP
-}
+};
 
 class CANController{
 public:
@@ -20,4 +20,6 @@
 private:
     FanPump *contrl_pins[6];
     DC dc;
-}
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
--- a/mbed.bld	Fri Nov 07 21:17:01 2014 +0000
+++ b/mbed.bld	Fri Nov 07 21:26:46 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file