Team Bath Racing Electric / Mbed 2 deprecated FRONT-MBED

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
samh25
Date:
Tue Jun 28 16:07:52 2022 +0000
Parent:
0:fe11ae12c823
Commit message:
2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jun 28 15:09:08 2022 +0000
+++ b/main.cpp	Tue Jun 28 16:07:52 2022 +0000
@@ -42,7 +42,7 @@
     pc.printf("FRONT STARTED\n");
     led1 = !led1;
     while(1) {
-        double num = (double) steeringIn.read();
+        float num = (float) steeringIn.read();
         sendCANMessage(num, steeringMessageID);
         led1 = !led1;
         led2 = !led2;