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: ExoController MODSERIAL SDFileSystem_HelloWorld UI-Honka mbed
Fork of Data Management by
Diff: initDatabed/initDatabed.cpp
- Revision:
- 3:ef7e0cbade6d
- Parent:
- 2:b87aaf1bc803
- Child:
- 6:784990d5180a
- Child:
- 8:f8fd59fe3e11
--- a/initDatabed/initDatabed.cpp Sat Nov 22 00:58:11 2014 +0000 +++ b/initDatabed/initDatabed.cpp Mon Nov 24 03:28:44 2014 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "MODSERIAL.h" +#include "BluetoothComm.h" MODSERIAL xbeeUI(p28, p27); //XBee UI crutch communication @@ -24,6 +25,10 @@ DigitalIn leftFault(p21); DigitalIn rightFault(p22); +BluetoothComm phone(p9, p10); +CAN BMS(p30, p29); +CANMessage msg; + void initializeDatabed() { xbeeUI.baud(115200); pc.baud(921600); @@ -32,6 +37,7 @@ comm.format(8,1); inhibit_L=1; inhibit_R=1; + BMS.frequency(250000); wait(1); pc.printf("Starting databed...\r\n");