Using VCS to create a deadzone and throttle curve for a motor.
Not sure what the error means.
Not quite sure, but try making 100
a float, since leftDriveValue is a float.
do you mean 100.0?
I did that. Same error.
Yeah I’m not sure then. Could be something with the operator there, but I don’t think it is.
@jpearman would you have any ideas?
well, what I assume what you want is raised to power 3, which would be
leftDriveValue = pow( (leftDriveValue/100), 3.0 );
the ^
operator is binary XOR
1 Like
Ah that makes sense.
To add on to what @jpearman was saying, there exist many places online where you can find what various operators do in C/C++, like Wikipedia.
1 Like
Got it. Thanks guys.