I have been playing around with different functions for the joysticks as well. One method that I have been playing around with is a simple linear function that reduces the overall speed of the bot, with the deadband in there, and allowing it to go to full speeds when the driver holds down a button. I know you are using easy c, but this should be understandable:
Code:
if(p1_sw_trig==1)
{
pwm01=Set_Neutral(p1_y);
pwm02=Set_Neutral(p2_y);
}
else
{
pwm01 = Set_Neutral( ( (.44)*p1_y)+70 );
pwm02 = Set_Neutral( ( (.44)*p2_y)+70 );
}
Set_Neutral is my deadband function. So right now the maximum forward I can go is 181 and opposite with the reverse. If the driver wants to go full speed ahead right now they just hold down the left trigger. I have heard that too much floating point arithmetic puts more strain on the processor though, so just don't use too much. Hope this helps