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
Revision 13:565aa2c6bd3d, committed 2015-06-23
- Comitter:
- drummer
- Date:
- Tue Jun 23 10:53:51 2015 +0000
- Parent:
- 12:bad33209d1bb
- Commit message:
- OneTrueBraceStyle
Changed in this revision
Messdatenerfassung.cpp | Show annotated file Show diff for this revision Revisions of this file |
Motorsteuerung.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
--- a/Motorsteuerung.cpp Tue Jun 23 10:49:55 2015 +0000 +++ b/Motorsteuerung.cpp Tue Jun 23 10:53:51 2015 +0000 @@ -3,7 +3,6 @@ PwmOut mypwm(PWM_OUT); //For output PWM-pin -AnalogIn analog_value0(A0); //For reading Hall-Sensor ADC-PIN void motoransteuerung(){ mypwm.period_us(PERIODEN_DAUER);