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.h
- Revision:
- 39:e6aa6dcf3f75
- Parent:
- 38:d04a430d7fe3
- Child:
- 40:92f08fdc32df
diff -r d04a430d7fe3 -r e6aa6dcf3f75 Steering.h --- a/Steering.h Sun Feb 08 02:47:05 2015 +0000 +++ b/Steering.h Sun Feb 08 05:47:05 2015 +0000 @@ -26,8 +26,8 @@ #define TRButtonRed DigitalOut u1(P1_14,1); DigitalOut u2(P1_9,0); float pi = 3.14159; -float WheelRadius = 5/6; // In feet; same as 10 inches -float WheelCircumference = 2*pi*WheelRadius; //In feet +float WheelRadius = 5.0/6.0; // In feet; same as 10 inches +float WheelCircumference = 2.0*pi*WheelRadius; //In feet Serial pc(USBTX,USBRX);