|
|
@ -84,26 +84,27 @@ void Subboard10Hbot::initialize() { |
|
|
|
|
|
|
|
static XYRobotCtrlModule::config_t xy_defaultcfg; |
|
|
|
XYRobotCtrlModule::create_default_cfg(xy_defaultcfg); |
|
|
|
xy_defaultcfg.configInited = true; |
|
|
|
xy_defaultcfg.robot_type = 1; |
|
|
|
xy_defaultcfg.configInited = true; |
|
|
|
xy_defaultcfg.robot_type = 1; |
|
|
|
|
|
|
|
xy_defaultcfg.robot_type = XYRobotCtrlModule::khbot; |
|
|
|
xy_defaultcfg.x_shaft = 0; |
|
|
|
xy_defaultcfg.y_shaft = 1; |
|
|
|
xy_defaultcfg.ihold = 1; |
|
|
|
xy_defaultcfg.irun = 16; |
|
|
|
xy_defaultcfg.ihold = 3; |
|
|
|
xy_defaultcfg.irun = 20; |
|
|
|
xy_defaultcfg.iholddelay = 100; |
|
|
|
xy_defaultcfg.distance_scale = 7344; |
|
|
|
xy_defaultcfg.shift_x = 0; |
|
|
|
xy_defaultcfg.shift_y = 0; |
|
|
|
|
|
|
|
// limit
|
|
|
|
xy_defaultcfg.acc = 800; |
|
|
|
xy_defaultcfg.dec = 800; |
|
|
|
xy_defaultcfg.min_x = 0; |
|
|
|
xy_defaultcfg.max_x = 0; |
|
|
|
xy_defaultcfg.min_y = 0; |
|
|
|
xy_defaultcfg.max_y = 0; |
|
|
|
xy_defaultcfg.acc = 400; |
|
|
|
xy_defaultcfg.dec = 400; |
|
|
|
xy_defaultcfg.min_x = 0; |
|
|
|
xy_defaultcfg.max_x = 0; |
|
|
|
xy_defaultcfg.min_y = 0; |
|
|
|
xy_defaultcfg.max_y = 0; |
|
|
|
xy_defaultcfg.default_velocity = 300; |
|
|
|
|
|
|
|
xy_defaultcfg.run_to_zero_speed = 80; |
|
|
|
xy_defaultcfg.look_zero_edge_speed = 10; |
|
|
|