nautilus / Mbed 2 deprecated lib-nautiluscan

Dependencies:   mbed

Fork of lib-nautiluscan by felix bouliane

Revision:
1:22f609fa3a18
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CANFactory.cpp	Tue Oct 13 20:44:26 2015 +0000
@@ -0,0 +1,14 @@
+#include "CANFactory.h"
+CANFactory::CANFactory(){
+}
+CANFactory::~CANFactory(){
+}
+CANMessage CANFactory::CreateMotorCommand(int rpm, bool way, bool status){
+    CANMessage can;
+    can.id = 0x101;
+    can.data[0] = (uint8_t)(rpm/100);
+    can.data[1] = (uint8_t)(rpm & 99);
+    can.data[2] = way;
+    can.data[3] = status;
+    return can;
+}
\ No newline at end of file