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@3:9ac9fdf1856e, 2014-11-08 (annotated)
- Committer:
- YosukeK
- Date:
- Sat Nov 08 02:45:59 2014 +0000
- Revision:
- 3:9ac9fdf1856e
- Parent:
- 2:91135f19ac12
- Child:
- 4:039a7d1ce3e9
Added DelayServo class.
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 | 3:9ac9fdf1856e | 14 | //#include <RobotArm.h> |
YosukeK | 0:a9b204e27472 | 15 | |
YosukeK | 3:9ac9fdf1856e | 16 | DelayServo shakeHead(PA_10, 25, 10000, 170, 5, 100, true); |
YosukeK | 3:9ac9fdf1856e | 17 | DelayServo nodHead(PB_10, 25, 10000, 170, 5, 110, true); |
YosukeK | 1:5f6dd444850a | 18 | |
YosukeK | 3:9ac9fdf1856e | 19 | DelayServo leftArm(PA_8, 10, 10000, 170, 5, 94, true); |
YosukeK | 3:9ac9fdf1856e | 20 | DelayServo leftShoulder(PA_9, 10, 10000, 170, 5, 90, true); |
YosukeK | 1:5f6dd444850a | 21 | |
YosukeK | 3:9ac9fdf1856e | 22 | DelayServo rightArm(PB_8, 10, 10000, 170, 5, 116, true); |
YosukeK | 3:9ac9fdf1856e | 23 | DelayServo rightShoulder(PB_9, 10, 10000, 170, 5, 90, false); |
YosukeK | 1:5f6dd444850a | 24 | |
YosukeK | 2:91135f19ac12 | 25 | ExtendedServo oyatsuFeeder(PA_0, 170, 10, 0, false); |
YosukeK | 2:91135f19ac12 | 26 | |
YosukeK | 2:91135f19ac12 | 27 | Serial pc(SERIAL_TX, SERIAL_RX); |
YosukeK | 2:91135f19ac12 | 28 | |
YosukeK | 2:91135f19ac12 | 29 | DigitalOut myled(LED1); |
YosukeK | 2:91135f19ac12 | 30 | DigitalOut nyandaLight(PA_13); |