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.
Diff: robot.h
- Revision:
- 0:9f058fe8cab5
- Child:
- 20:f0ca65974329
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/robot.h Thu Jun 25 00:10:50 2015 +0000 @@ -0,0 +1,29 @@ +#include <stdio.h> +#include <stdlib.h> +#include "mbed.h" +#include "m3pi.h" + +#define BUF_SIZE 128 +#define ERROR 1 +#define OK 0 + +//PID gains +#define P_TERM 1.5 +#define I_TERM 0.01 +#define D_TERM 20 + +//max/min speed +#define MAX 0.25 +#define MIN 0.1 + +DigitalOut xbeeReset(p26); //reset on Xbee + +Serial pc(USBTX, USBRX); // tx, rx, interface with PC +Serial xbee(p28, p27); //tx, rx, interface with xbee + +DigitalOut led1(LED1); +DigitalOut led2(LED2); +DigitalOut led3(LED3); +DigitalOut led4(LED4); + +m3pi pi; \ No newline at end of file