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:
- 6:a3829299dfd5
- Parent:
- 4:039a7d1ce3e9
- Child:
- 7:3fcb0d1c41aa
--- a/def_resources.cpp Sun Jan 25 07:45:04 2015 +0000 +++ b/def_resources.cpp Sat Feb 28 12:02:38 2015 +0000 @@ -8,12 +8,15 @@ */ #include <mbed.h> -#include <PwmServo.h> -#include <ExtendedServo.h> -#include <DelayServo.h> +#include "PwmServo.h" +#include "ExtendedServo.h" +#include "DelayServo.h" #include "Roomba.h" -#include "EventArg.h" -//#include <RobotArm.h> +#include "DerivedRoomba.h" +#include "Data.h" + +Serial pc(PA_11, PA_12); +DerivedRoomba base(PA_9, PA_10, PA_14); //DelayServo shakeHead(PA_10, 25, 10000, 170, 5, 100, true); //DelayServo nodHead(PB_10, 25, 10000, 170, 5, 110, true); @@ -23,21 +26,15 @@ // //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 shakeHead(PB_3, 170, 5, 100, true); ExtendedServo nodHead(PB_10, 170, 5, 110, true); - ExtendedServo leftArm(PA_8, 170, 5, 94, true); -ExtendedServo leftShoulder(PA_9, 170, 5, 90, true); - +ExtendedServo leftShoulder(PB_5, 170, 5, 90, true); 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(PA_11, PA_12); -Roomba base(PA_2, PA_3, PA_14); DigitalOut debugled(PA_15); - - DigitalOut myled(LED1); -DigitalOut nyandaLight(PA_13); +DigitalOut nyandaBeam(PA_13);