Martin Werluschnig
/
BertlTemplate2_Linienfahren
BertlTemplate2_Linienfahren
BertlTemplate.cpp@3:6a490ad8cb46, 2016-05-24 (annotated)
- Committer:
- hollegha2
- Date:
- Tue May 24 11:41:26 2016 +0000
- Revision:
- 3:6a490ad8cb46
- Parent:
- 2:d24a3d2438a4
- Child:
- 4:4b71af20b3b7
add motors
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hollegha2 | 0:fa9b473d690b | 1 | |
hollegha2 | 0:fa9b473d690b | 2 | #include "mbed.h" |
hollegha2 | 0:fa9b473d690b | 3 | #include "Serial_HL.h" |
hollegha2 | 0:fa9b473d690b | 4 | #include "Bertl14.h" |
hollegha2 | 0:fa9b473d690b | 5 | #include "BertlObjects.h" |
hollegha2 | 0:fa9b473d690b | 6 | |
hollegha2 | 2:d24a3d2438a4 | 7 | // main=2^0 LS ENC 2^2 |
hollegha2 | 2:d24a3d2438a4 | 8 | BusOut boardPow(p30, P1_6, P1_7); |
hollegha2 | 0:fa9b473d690b | 9 | |
hollegha2 | 0:fa9b473d690b | 10 | int main(void) |
hollegha2 | 0:fa9b473d690b | 11 | { |
hollegha2 | 2:d24a3d2438a4 | 12 | boardPow=1; wait_ms(10); |
hollegha2 | 0:fa9b473d690b | 13 | InitBertl(); |
hollegha2 | 0:fa9b473d690b | 14 | pex.useISR=0; leds=9; |
hollegha2 | 0:fa9b473d690b | 15 | pex.ClearLeds(); |
hollegha2 | 0:fa9b473d690b | 16 | |
hollegha2 | 0:fa9b473d690b | 17 | while(1) |
hollegha2 | 0:fa9b473d690b | 18 | { |
hollegha2 | 3:6a490ad8cb46 | 19 | mL.SetPow(0.2); mR.SetPow(0.2); |
hollegha2 | 0:fa9b473d690b | 20 | } |
hollegha2 | 0:fa9b473d690b | 21 | |
hollegha2 | 0:fa9b473d690b | 22 | return 1; |
hollegha2 | 0:fa9b473d690b | 23 | } |
hollegha2 | 0:fa9b473d690b | 24 | |
hollegha2 | 0:fa9b473d690b | 25 |