Modified library for the m3pi robot with individual calibrated sensor measurement functionality. This works with a Pololu 3pi robot with the Serial Slave firmware.
Fork of m3pi by
Diff: m3pi.h
- Revision:
- 9:d9682f35e58a
- Parent:
- 8:4b7d6ea9b35b
--- a/m3pi.h Thu May 12 13:26:37 2011 +0000 +++ b/m3pi.h Tue Oct 02 16:35:36 2018 +0000 @@ -32,6 +32,7 @@ #define SEND_SIGNATURE 0x81 #define SEND_RAW_SENSOR_VALUES 0x86 +#define SEND_CALIBRATED_SENSOR_VALUES 0x87 #define SEND_TRIMPOT 0xB0 #define SEND_BATTERY_MILLIVOLTS 0xB1 #define DO_PLAY 0xB3 @@ -155,6 +156,8 @@ * @returns battery voltage as a float */ float battery(void); + + int * calibrated_sensors(void); /** Read the position of the detected line * @returns position as A normalised number -1.0 - 1.0 represents the full range.