Railway Challenge / Mbed 2 deprecated challenge-ChaiUpdated

Dependencies:   mbed millis

Revision:
33:9198b292a8eb
Parent:
32:771f6d99a77b
--- a/main.cpp	Mon Jun 20 09:49:27 2022 +0000
+++ b/main.cpp	Mon Jun 20 17:12:18 2022 +0000
@@ -120,9 +120,9 @@
     float energy_supercap = (1/2) * (current_supercap * current_supercap) * (t*t) / C;
     float energy_powercab = (1/2) * (current_powercab * current_powercab) * (t*t) / C;
     int scap = static_cast<int>(energy_supercap);
-    int pcab = static_cast<int>(energy_powercab);
-    remote.sendData(2,scap);
-    remote.sendData(2,pcab);
+    int pcab = static_cast<int>(current_powercab);//(current_powercab);
+    remote.sendData(9,scap);
+    remote.sendData(10,pcab);
     
 }