Plz
Dependencies: mbed CANMsg Adafruit_LEDBackpack
Revision 8:3eb4fcab8ede, committed 2019-08-05
- Comitter:
- fconboy
- Date:
- Mon Aug 05 21:06:44 2019 +0000
- Parent:
- 7:060be032c57a
- Child:
- 9:42ded201dcdd
- Commit message:
- Test with working mbed and motor
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Aug 05 16:50:20 2019 +0000 +++ b/main.cpp Mon Aug 05 21:06:44 2019 +0000 @@ -131,7 +131,7 @@ else { //wait(0.5); - //flash(3); + flash(3); } //if(can1.write(busCurrent)) @@ -149,7 +149,7 @@ pc.baud(9600); can1.frequency(1000000); - ticker.attach(&sendCAN, 1); + ticker.attach(&sendCAN, 0.1); ignition.mode(PullUp); regen.mode(PullUp); rev.mode(PullUp); @@ -181,7 +181,8 @@ //printf("Attempting to send a CAN message\n"); //printf("Current and Speed: %f and %f\n", currentPot.read(), speedPot.read()); //pc.printf("-------------------------------------\r\n"); - //while(1) { + + while(1) { //curr_val = 0.0; //speed_val = 0.0; @@ -248,5 +249,5 @@ //sendCAN(); //pc.printf("\r\n\r\n"); //wait(3); - //} + } } \ No newline at end of file