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
Motorsteuerung.cpp@13:565aa2c6bd3d, 2015-06-23 (annotated)
- Committer:
- drummer
- Date:
- Tue Jun 23 10:53:51 2015 +0000
- Revision:
- 13:565aa2c6bd3d
- Parent:
- 12:bad33209d1bb
OneTrueBraceStyle
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
scooter_project | 6:7c0a32831a4f | 1 | #include "mbed.h" |
thorb3n | 8:fb6cb712eb52 | 2 | #include "Prototypen.h" |
scooter_project | 6:7c0a32831a4f | 3 | |
scooter_project | 6:7c0a32831a4f | 4 | |
scooter_project | 6:7c0a32831a4f | 5 | PwmOut mypwm(PWM_OUT); //For output PWM-pin |
thorb3n | 11:7dfdb8074992 | 6 | |
thorb3n | 12:bad33209d1bb | 7 | void motoransteuerung(){ |
thorb3n | 12:bad33209d1bb | 8 | mypwm.period_us(PERIODEN_DAUER); |
scooter_project | 6:7c0a32831a4f | 9 | while(1) { |
thorb3n | 11:7dfdb8074992 | 10 | if(break_value==0) { |
thorb3n | 11:7dfdb8074992 | 11 | mypwm.pulsewidth_us(PERIODEN_DAUER*hall_umrechnung()); //How often to change between High and low per Period. |
thorb3n | 12:bad33209d1bb | 12 | } |
thorb3n | 11:7dfdb8074992 | 13 | } |
scooter_project | 6:7c0a32831a4f | 14 | } |