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
Diff: def_resources.cpp
- Revision:
- 4:039a7d1ce3e9
- Parent:
- 3:9ac9fdf1856e
- Child:
- 6:a3829299dfd5
--- a/def_resources.cpp Sat Nov 08 02:45:59 2014 +0000 +++ b/def_resources.cpp Sat Jan 24 17:41:21 2015 +0000 @@ -11,20 +11,33 @@ #include <PwmServo.h> #include <ExtendedServo.h> #include <DelayServo.h> +#include "Roomba.h" +#include "EventArg.h" //#include <RobotArm.h> -DelayServo shakeHead(PA_10, 25, 10000, 170, 5, 100, true); -DelayServo nodHead(PB_10, 25, 10000, 170, 5, 110, true); +//DelayServo shakeHead(PA_10, 25, 10000, 170, 5, 100, true); +//DelayServo nodHead(PB_10, 25, 10000, 170, 5, 110, true); +// +//DelayServo leftArm(PA_8, 10, 10000, 170, 5, 94, true); +//DelayServo leftShoulder(PA_9, 10, 10000, 170, 5, 90, true); +// +//DelayServo rightArm(PB_8, 10, 10000, 170, 5, 116, true); +//DelayServo rightShoulder(PB_9, 10, 10000, 170, 5, 90, false); +ExtendedServo shakeHead(PA_10, 170, 5, 100, true); +ExtendedServo nodHead(PB_10, 170, 5, 110, true); -DelayServo leftArm(PA_8, 10, 10000, 170, 5, 94, true); -DelayServo leftShoulder(PA_9, 10, 10000, 170, 5, 90, true); +ExtendedServo leftArm(PA_8, 170, 5, 94, true); +ExtendedServo leftShoulder(PA_9, 170, 5, 90, true); -DelayServo rightArm(PB_8, 10, 10000, 170, 5, 116, true); -DelayServo rightShoulder(PB_9, 10, 10000, 170, 5, 90, false); +ExtendedServo rightArm(PB_8, 170, 5, 116, true); +ExtendedServo rightShoulder(PB_9, 170, 5, 90, false); ExtendedServo oyatsuFeeder(PA_0, 170, 10, 0, false); -Serial pc(SERIAL_TX, SERIAL_RX); - +Serial pc(PA_11, PA_12); +Roomba base(PA_2, PA_3, PA_14); +DigitalOut debugled(PA_15); + + DigitalOut myled(LED1); -DigitalOut nyandaLight(PA_13); \ No newline at end of file +DigitalOut nyandaLight(PA_13);