EtherCAT slave that reads 3 Xsens IMU's connected to a Xbus Master
Dependencies: MODSERIAL mbed KL25Z_ClockControl
Fork of EtherCAT by
Diff: xbus.cpp
- Revision:
- 28:8505285f65ed
- Parent:
- 27:93c0e4ae943e
- Child:
- 36:8e6ac6082e97
diff -r 93c0e4ae943e -r 8505285f65ed xbus.cpp --- a/xbus.cpp Mon Mar 09 15:58:00 2015 +0000 +++ b/xbus.cpp Tue Mar 10 09:43:41 2015 +0000 @@ -162,8 +162,8 @@ XbusCreateMessage(0xFF,0x04,2,data,msg);//SetPeriod XbusSendArray(msg); - data[0] = 0x40; - data[1] = 0x00; + data[0] = 0;//0x40; + data[1] = 2;//0x00;//0002: callibrated data for (int i = 0 ; i<3 ; i++) { XbusCreateMessage(i+1,0xD0,2,data,msg);//Set Output Data Format