|
@ -42,7 +42,7 @@ void Subboard10Hbot::initialize() { |
|
|
}; |
|
|
}; |
|
|
motora.initialize(&cfg); |
|
|
motora.initialize(&cfg); |
|
|
motora.setMotorShaft(false); |
|
|
motora.setMotorShaft(false); |
|
|
motora.setGlobalScale(32); |
|
|
|
|
|
|
|
|
motora.setGlobalScale(31); |
|
|
ZLOGI(TAG, "motora initialize TMC4361A:%x DriverIC:%x", motora.readICVersion(), motora.driverIC_readICVersion()); |
|
|
ZLOGI(TAG, "motora initialize TMC4361A:%x DriverIC:%x", motora.readICVersion(), motora.driverIC_readICVersion()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -58,7 +58,7 @@ void Subboard10Hbot::initialize() { |
|
|
}; |
|
|
}; |
|
|
motorb.initialize(&cfg); |
|
|
motorb.initialize(&cfg); |
|
|
motorb.setMotorShaft(false); |
|
|
motorb.setMotorShaft(false); |
|
|
motorb.setGlobalScale(32); |
|
|
|
|
|
|
|
|
motorb.setGlobalScale(31); |
|
|
ZLOGI(TAG, "motorb initialize TMC4361A:%x DriverIC:%x", motorb.readICVersion(), motorb.driverIC_readICVersion()); |
|
|
ZLOGI(TAG, "motorb initialize TMC4361A:%x DriverIC:%x", motorb.readICVersion(), motorb.driverIC_readICVersion()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -91,7 +91,7 @@ void Subboard10Hbot::initialize() { |
|
|
xy_defaultcfg.x_shaft = 0; |
|
|
xy_defaultcfg.x_shaft = 0; |
|
|
xy_defaultcfg.y_shaft = 1; |
|
|
xy_defaultcfg.y_shaft = 1; |
|
|
xy_defaultcfg.ihold = 3; |
|
|
xy_defaultcfg.ihold = 3; |
|
|
xy_defaultcfg.irun = 20; |
|
|
|
|
|
|
|
|
xy_defaultcfg.irun = 31; |
|
|
xy_defaultcfg.iholddelay = 100; |
|
|
xy_defaultcfg.iholddelay = 100; |
|
|
xy_defaultcfg.distance_scale = 7344; |
|
|
xy_defaultcfg.distance_scale = 7344; |
|
|
xy_defaultcfg.shift_x = 0; |
|
|
xy_defaultcfg.shift_x = 0; |
|
@ -106,7 +106,7 @@ void Subboard10Hbot::initialize() { |
|
|
xy_defaultcfg.max_y = 0; |
|
|
xy_defaultcfg.max_y = 0; |
|
|
xy_defaultcfg.default_velocity = 300; |
|
|
xy_defaultcfg.default_velocity = 300; |
|
|
|
|
|
|
|
|
xy_defaultcfg.run_to_zero_speed = 80; |
|
|
|
|
|
|
|
|
xy_defaultcfg.run_to_zero_speed = 40; |
|
|
xy_defaultcfg.look_zero_edge_speed = 10; |
|
|
xy_defaultcfg.look_zero_edge_speed = 10; |
|
|
|
|
|
|
|
|
xyRobotCtrlModule.initialize(getmoduleId(1), &motora, &motorb, &input[0], 4, xy_defaultcfg); |
|
|
xyRobotCtrlModule.initialize(getmoduleId(1), &motora, &motorb, &input[0], 4, xy_defaultcfg); |
|
|