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.
Dependencies: mbed
Diff: Messdatenerfassung.cpp
- Revision:
- 13:565aa2c6bd3d
- Parent:
- 12:bad33209d1bb
--- a/Messdatenerfassung.cpp Tue Jun 23 10:49:55 2015 +0000 +++ b/Messdatenerfassung.cpp Tue Jun 23 10:53:51 2015 +0000 @@ -1,5 +1,7 @@ #include "mbed.h" + const int mosfet1_resistence = 100; // Resistence in Ohm + AnalogIn voltage0(A0); // Edit Pin-Port for the battery-voltage measurement AnalogIn voltage1(A1); // Edit Pin-Port for the throttle-voltage measurement AnalogIn voltage2(A2); // Edit Pin-Port for the capacitor-voltage measurement @@ -7,6 +9,7 @@ AnalogIn voltage3(A3); // Pin-Port for voltage before Mosfet1 AnalogIn voltage4(A4); // Pin-Port for voltage after Mosfet2 Timer timer2; // Timer for Capacity-Measurement + float accu_voltage(){ float meas0;