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: mbed
Fork of lib-nautiluscan by
Diff: CANFactory.cpp
- Revision:
- 1:22f609fa3a18
diff -r 5317ac75052b -r 22f609fa3a18 CANFactory.cpp
--- /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
