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
CANFactory.cpp
- Committer:
- xhkunlimit
- Date:
- 2015-10-13
- Revision:
- 1:22f609fa3a18
File content as of revision 1:22f609fa3a18:
#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;
}
