EtherCAT slave that reads 3 Xsens IMU's connected to a Xbus Master

Dependencies:   MODSERIAL mbed KL25Z_ClockControl

Fork of EtherCAT by First Last

Revision:
17:c5946a0fde83
Parent:
13:5e4dcbd44786
Child:
18:6629e8c5d59e
--- a/EtherCAT/cpuinit.cpp	Tue Mar 03 15:01:29 2015 +0000
+++ b/EtherCAT/cpuinit.cpp	Thu Mar 05 22:22:47 2015 +0000
@@ -32,10 +32,6 @@
 #include "cpuinit.h"
 #include "mbed.h"
 
-extern float FrontRight_offset;
-extern float FrontLeft_offset;
-extern float BackLeft_offset;
-extern float BackRight_offset;
 
 void cpuinit(void)
 {
@@ -45,6 +41,7 @@
     
     xbus.baud(115200);
     wait(1);//because Xbus master and IMU's need to boot.
+    XbusSetupReceiver(&xbus_master); //initialize struct
     XbusInitializeXbusMaster();
     
     wait_ms(20);