|
|
@ -641,7 +641,7 @@ int32_t XYRobotCtrlModule::module_clear_error() { return 0; } |
|
|
|
*val = modulereg; \ |
|
|
|
break; |
|
|
|
|
|
|
|
int32_t XYRobotCtrlModule::module_set_param(int32_t param_id, int32_t val) { |
|
|
|
int32_t XYRobotCtrlModule::module_set_reg(int32_t param_id, int32_t val) { |
|
|
|
switch (param_id) { |
|
|
|
SET_REG(kreg_motor_x_shift, m_basecfg.shift_x); |
|
|
|
SET_REG(kreg_motor_y_shift, m_basecfg.shift_y); |
|
|
@ -669,7 +669,7 @@ int32_t XYRobotCtrlModule::module_set_param(int32_t param_id, int32_t val) { |
|
|
|
return err::kmodule_not_find_config_index; |
|
|
|
} |
|
|
|
} |
|
|
|
int32_t XYRobotCtrlModule::module_get_param(int32_t param_id, int32_t* val) { |
|
|
|
int32_t XYRobotCtrlModule::module_get_reg(int32_t param_id, int32_t* val) { |
|
|
|
switch (param_id) { |
|
|
|
GET_REG(kreg_motor_x_shift, m_basecfg.shift_x); |
|
|
|
GET_REG(kreg_motor_y_shift, m_basecfg.shift_y); |
|
|
|