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.
Fork of Nucleo_CaitSith_Firmware by
def_resources.cpp@6:a3829299dfd5, 2015-02-28 (annotated)
- Committer:
- YosukeK
- Date:
- Sat Feb 28 12:02:38 2015 +0000
- Revision:
- 6:a3829299dfd5
- Parent:
- 4:039a7d1ce3e9
- Child:
- 7:3fcb0d1c41aa
Roomba??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
YosukeK | 0:a9b204e27472 | 1 | /* |
YosukeK | 0:a9b204e27472 | 2 | |
YosukeK | 0:a9b204e27472 | 3 | Controller firmware for CaitSithDanger |
YosukeK | 0:a9b204e27472 | 4 | |
YosukeK | 0:a9b204e27472 | 5 | Kyoto-Densou-An 2014 |
YosukeK | 0:a9b204e27472 | 6 | |
YosukeK | 0:a9b204e27472 | 7 | Author : yishii |
YosukeK | 0:a9b204e27472 | 8 | */ |
YosukeK | 0:a9b204e27472 | 9 | |
YosukeK | 0:a9b204e27472 | 10 | #include <mbed.h> |
YosukeK | 6:a3829299dfd5 | 11 | #include "PwmServo.h" |
YosukeK | 6:a3829299dfd5 | 12 | #include "ExtendedServo.h" |
YosukeK | 6:a3829299dfd5 | 13 | #include "DelayServo.h" |
YosukeK | 4:039a7d1ce3e9 | 14 | #include "Roomba.h" |
YosukeK | 6:a3829299dfd5 | 15 | #include "DerivedRoomba.h" |
YosukeK | 6:a3829299dfd5 | 16 | #include "Data.h" |
YosukeK | 6:a3829299dfd5 | 17 | |
YosukeK | 6:a3829299dfd5 | 18 | Serial pc(PA_11, PA_12); |
YosukeK | 6:a3829299dfd5 | 19 | DerivedRoomba base(PA_9, PA_10, PA_14); |
YosukeK | 0:a9b204e27472 | 20 | |
YosukeK | 4:039a7d1ce3e9 | 21 | //DelayServo shakeHead(PA_10, 25, 10000, 170, 5, 100, true); |
YosukeK | 4:039a7d1ce3e9 | 22 | //DelayServo nodHead(PB_10, 25, 10000, 170, 5, 110, true); |
YosukeK | 4:039a7d1ce3e9 | 23 | // |
YosukeK | 4:039a7d1ce3e9 | 24 | //DelayServo leftArm(PA_8, 10, 10000, 170, 5, 94, true); |
YosukeK | 4:039a7d1ce3e9 | 25 | //DelayServo leftShoulder(PA_9, 10, 10000, 170, 5, 90, true); |
YosukeK | 4:039a7d1ce3e9 | 26 | // |
YosukeK | 4:039a7d1ce3e9 | 27 | //DelayServo rightArm(PB_8, 10, 10000, 170, 5, 116, true); |
YosukeK | 4:039a7d1ce3e9 | 28 | //DelayServo rightShoulder(PB_9, 10, 10000, 170, 5, 90, false); |
YosukeK | 6:a3829299dfd5 | 29 | |
YosukeK | 6:a3829299dfd5 | 30 | ExtendedServo shakeHead(PB_3, 170, 5, 100, true); |
YosukeK | 4:039a7d1ce3e9 | 31 | ExtendedServo nodHead(PB_10, 170, 5, 110, true); |
YosukeK | 4:039a7d1ce3e9 | 32 | ExtendedServo leftArm(PA_8, 170, 5, 94, true); |
YosukeK | 6:a3829299dfd5 | 33 | ExtendedServo leftShoulder(PB_5, 170, 5, 90, true); |
YosukeK | 4:039a7d1ce3e9 | 34 | ExtendedServo rightArm(PB_8, 170, 5, 116, true); |
YosukeK | 4:039a7d1ce3e9 | 35 | ExtendedServo rightShoulder(PB_9, 170, 5, 90, false); |
YosukeK | 2:91135f19ac12 | 36 | ExtendedServo oyatsuFeeder(PA_0, 170, 10, 0, false); |
YosukeK | 2:91135f19ac12 | 37 | |
YosukeK | 4:039a7d1ce3e9 | 38 | DigitalOut debugled(PA_15); |
YosukeK | 2:91135f19ac12 | 39 | DigitalOut myled(LED1); |
YosukeK | 6:a3829299dfd5 | 40 | DigitalOut nyandaBeam(PA_13); |