Victoria Gough
/
TrackingTempRead_test
Testing code for just temperature test
Diff: SPICOMMANDS.h
- Revision:
- 0:584ea5db2696
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SPICOMMANDS.h Mon Sep 04 10:15:45 2017 +0000 @@ -0,0 +1,26 @@ +//Slave list + +#define ERROR 0x00 + +// slave addresses +#define MEGA1 0x01 +#define SPLITMEGA_FR 0x02 //split mega front right +#define SPLITMEGA_FL 0x03 +#define MEGA4 0x04 +#define MEGA5 0x05 + +// each mega needs its own number they must all be different. + + + +// NOTE: This must match the command list in the MEGA headder. + + +//define commands +#define do_nothing 0x00 // sent by mbed to just read whats currently in buffer on arduino. no action from arduino required +#define read_position_only 0x01 +#define request_temps 0x02 +#define read_onetemp_only 0x03 +#define move_motor_position 0x04 +#define move_motor_manual 0x05 +#define set_zero 0x06 //calibration