The Code Repository for the REV0 Steering Wheel.
Dependencies: CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses
Fork of REVO_Updated_Steering by
Diff: Steering.cpp
- Revision:
- 24:ba3428215006
- Parent:
- 23:6681a38918c6
- Child:
- 25:fc63a5bffffc
diff -r 6681a38918c6 -r ba3428215006 Steering.cpp --- a/Steering.cpp Thu Nov 13 23:45:12 2014 +0000 +++ b/Steering.cpp Fri Nov 14 00:19:43 2014 +0000 @@ -59,6 +59,7 @@ } void read_messages(void const *args) { + while (true) { CANMessage Rxmsg; @@ -85,7 +86,7 @@ } } } -} + int main(){ // Initialize, set all variables. @@ -100,7 +101,7 @@ //New thread to read messages. Thread update_thread(read_messages); - update_thread.set_priority(osPriorityLow + update_thread.set_priority(osPriorityLow); wait(1);