diff --git a/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs b/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs
new file mode 100644
index 0000000..98a69fc
--- /dev/null
+++ b/.settings/com.st.stm32cube.ide.mcu.sfrview.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+sfrviewstate={"fFavorites"\:{"fLists"\:{}},"fProperties"\:{"fNodeProperties"\:{}}}
diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml
index e2f20a3..b52317d 100644
--- a/.settings/language.settings.xml
+++ b/.settings/language.settings.xml
@@ -5,7 +5,7 @@
-
+
@@ -16,7 +16,7 @@
-
+
diff --git a/flia_robot_arm_v1 Debug.launch b/flia_robot_arm_v1 Debug.launch
index 8cde4c2..21330fd 100644
--- a/flia_robot_arm_v1 Debug.launch
+++ b/flia_robot_arm_v1 Debug.launch
@@ -50,9 +50,9 @@
-
-
-
+
+
+
diff --git a/sdk b/sdk
index a2c4579..e078030 160000
--- a/sdk
+++ b/sdk
@@ -1 +1 @@
-Subproject commit a2c45792303627e55ee39039a587750f77354056
+Subproject commit e078030fbe2882fe9d70232a6da25def64822782
diff --git a/usrc/main.cpp b/usrc/main.cpp
index ef9e878..2eba0ac 100644
--- a/usrc/main.cpp
+++ b/usrc/main.cpp
@@ -25,15 +25,17 @@ void StartDefaultTask(void const* argument) { umain(); }
}
#define TMC_MOTOR_SPI hspi1
-static TMC4361A motora;
-static TMC4361A motorb;
-static ZCanCmder zcanCmder;
-static ZCanBasicOrderModule zcanBasicOrderModule;
-static ZCANXYRobotCtrlModule zcanXYRobotCtrlModule;
-static XYRobotCtrlModule xyRobotCtrlModule;
+static TMC4361A motora;
+static TMC4361A motorb;
+static ZCanCmder zcanCmder;
+static ZCanBasicOrderModule zcanBasicOrderModule;
+
static StepMotorCtrlModule stepMotorCtrlModule;
static ZCanStepMotorCtrlModule zcanStepMotorCtrlModule;
+static XYRobotCtrlModule xyRobotCtrlModule;
+static ZCANXYRobotCtrlModule zcanXYRobotCtrlModule;
+
void umain() {
chip_cfg_t chipcfg;
chipcfg.us_dleay_tim = &DELAY_US_TIMER;
@@ -129,6 +131,8 @@ void umain() {
xyRobotCtrlModule.create_default_cfg(base_param);
xyRobotCtrlModule.set_base_param(base_param);
+ zcanXYRobotCtrlModule.initialize(&zcanCmder, 1, &xyRobotCtrlModule);
+
while (true) {
OSDefaultSchduler::getInstance()->loop();
zcanCmder.loop();