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:
- 30:ea511cd81f43
- Parent:
- 29:6aa49bba0d81
- Child:
- 31:e36b7722df56
--- a/robot.h Wed Aug 05 19:42:25 2015 -0700 +++ b/robot.h Thu Aug 06 06:30:50 2015 +0000 @@ -8,7 +8,7 @@ #define OK 0 //max/min speed -#define MAX 0.25 +#define MAX 1.0 #define MIN 0.1 DigitalOut xbeeReset(p26); //reset on Xbee @@ -32,17 +32,18 @@ volatile double leftspeed; volatile double rightspeed; +volatile double line_position; -char received[80]; +char received[1024]; int r_index; int sensors[5]; // GAINS/Params ////////////////////////////// -float k_p = 0.3; -float k_i = 0.0; -float k_d = 0.0; -float speed = 0.5; +double k_p = 0.3; +double k_i = 0.0; +double k_d = 0.0; +double speed = 0.35; ////////////////////////////// Ticker communication;