Display indicator of usable torque in settings
Ramtech59Sensei opened this issue · 6 comments
test.txt
path example , it happens with every path
if I change the wheel radius back to the original value all work again
also happens if you change only the value for "True Max Max speed" and "Max Velocity" to 4.1 but those not happens if you change it to 4.3
Your true max speed is very, very slow for the rest of your setup. The gear ratio is 6.12 which is the same as an SDS L3 module. The true max speed for that module is closer to 5 m/s. Because you have it so low, it is assuming that it takes a lot of effort to go that speed since the motor can provide a lot of torque at that speed. That leaves 0 torque left over to accelerate the robot without violating the current limit, which is why it can't generate.
Can you put a label or labels similar to "Max optimal Limit" to show calculated torque value.
Show in red when is incorrect or will not generate path ?
Your true max speed is very, very slow for the rest of your setup. The gear ratio is 6.12 which is the same as an SDS L3 module. The true max speed for that module is closer to 5 m/s. Because you have it so low, it is assuming that it takes a lot of effort to go that speed since the motor can provide a lot of torque at that speed. That leaves 0 torque left over to accelerate the robot without violating the current limit, which is why it can't generate.
This might be unintuitive to the user as the resulting behavior is not explained as a result of wrongly entered max speed. To get the correct behavior it sounds like you would require a manual recalculation of the correct max speed with every adjustment of the wheel radius and gearing.
Choreo handles this by providing a theoretical calculation of the max floor speed based on the motor parameters, gearing and wheel radius. Additionally Choreo uses a user entry for max motor rpm to make this calculation. This allows the user to choose a number with some overhead to avoid saturating the controller (running at max motor rpm gives no room for the controller to catch up if it falls behind the desired state.)
it sounds like you would require a manual recalculation of the correct max speed with every adjustment of the wheel radius and gearing
This is a measured value, not calculated. It's not really something that can be calculated, as this speed needs to be the max speed under load. It's how the generator determines how much motor torque actually makes it to the carpet. You could always set this value to the free speed, but you lose out on the accuracy gained from taking those forces into account.
This allows the user to choose a number with some overhead to avoid saturating the controller
A max velocity constraint is what gets used for this. The robot config needs to be the actual capabilities of the robot to make sure everything is limited correctly. Those values affect everything about how the robot moves, not just the maximum velocity.