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@4:039a7d1ce3e9, 2015-01-24 (annotated)
- Committer:
- YosukeK
- Date:
- Sat Jan 24 17:41:21 2015 +0000
- Revision:
- 4:039a7d1ce3e9
- Parent:
- 3:9ac9fdf1856e
- Child:
- 6:a3829299dfd5
????????????????
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 | 0:a9b204e27472 | 11 | #include <PwmServo.h> |
YosukeK | 1:5f6dd444850a | 12 | #include <ExtendedServo.h> |
YosukeK | 3:9ac9fdf1856e | 13 | #include <DelayServo.h> |
YosukeK | 4:039a7d1ce3e9 | 14 | #include "Roomba.h" |
YosukeK | 4:039a7d1ce3e9 | 15 | #include "EventArg.h" |
YosukeK | 3:9ac9fdf1856e | 16 | //#include <RobotArm.h> |
YosukeK | 0:a9b204e27472 | 17 | |
YosukeK | 4:039a7d1ce3e9 | 18 | //DelayServo shakeHead(PA_10, 25, 10000, 170, 5, 100, true); |
YosukeK | 4:039a7d1ce3e9 | 19 | //DelayServo nodHead(PB_10, 25, 10000, 170, 5, 110, true); |
YosukeK | 4:039a7d1ce3e9 | 20 | // |
YosukeK | 4:039a7d1ce3e9 | 21 | //DelayServo leftArm(PA_8, 10, 10000, 170, 5, 94, true); |
YosukeK | 4:039a7d1ce3e9 | 22 | //DelayServo leftShoulder(PA_9, 10, 10000, 170, 5, 90, true); |
YosukeK | 4:039a7d1ce3e9 | 23 | // |
YosukeK | 4:039a7d1ce3e9 | 24 | //DelayServo rightArm(PB_8, 10, 10000, 170, 5, 116, true); |
YosukeK | 4:039a7d1ce3e9 | 25 | //DelayServo rightShoulder(PB_9, 10, 10000, 170, 5, 90, false); |
YosukeK | 4:039a7d1ce3e9 | 26 | ExtendedServo shakeHead(PA_10, 170, 5, 100, true); |
YosukeK | 4:039a7d1ce3e9 | 27 | ExtendedServo nodHead(PB_10, 170, 5, 110, true); |
YosukeK | 1:5f6dd444850a | 28 | |
YosukeK | 4:039a7d1ce3e9 | 29 | ExtendedServo leftArm(PA_8, 170, 5, 94, true); |
YosukeK | 4:039a7d1ce3e9 | 30 | ExtendedServo leftShoulder(PA_9, 170, 5, 90, true); |
YosukeK | 1:5f6dd444850a | 31 | |
YosukeK | 4:039a7d1ce3e9 | 32 | ExtendedServo rightArm(PB_8, 170, 5, 116, true); |
YosukeK | 4:039a7d1ce3e9 | 33 | ExtendedServo rightShoulder(PB_9, 170, 5, 90, false); |
YosukeK | 1:5f6dd444850a | 34 | |
YosukeK | 2:91135f19ac12 | 35 | ExtendedServo oyatsuFeeder(PA_0, 170, 10, 0, false); |
YosukeK | 2:91135f19ac12 | 36 | |
YosukeK | 4:039a7d1ce3e9 | 37 | Serial pc(PA_11, PA_12); |
YosukeK | 4:039a7d1ce3e9 | 38 | Roomba base(PA_2, PA_3, PA_14); |
YosukeK | 4:039a7d1ce3e9 | 39 | DigitalOut debugled(PA_15); |
YosukeK | 4:039a7d1ce3e9 | 40 | |
YosukeK | 4:039a7d1ce3e9 | 41 | |
YosukeK | 2:91135f19ac12 | 42 | DigitalOut myled(LED1); |
YosukeK | 4:039a7d1ce3e9 | 43 | DigitalOut nyandaLight(PA_13); |