Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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); }