Hello, I am using the EasyCv6 program with a vex EDR cortex. I am having trouble with two motors in an arcade2 function not letting them go opposite directions. they can go both directions, just not different ones. ive tried setting it to 2 joystick to motors, with different sticks controlling it, ive tried setting it to different ports, and ive even gone into the On-Line control window (it would only work when the 2 were set to the same direction, positive or negative, i could set them at different values, but they had to be the same sign, and invert wouldnt work here, but in the arcade i would set it to invert and noinvert and they would go different directions and it would work the same, they just had to be different directions)
here is my code:
Code
#include "Main.h"
void main ( void )
{
int B5U;
int B5D;
int B8D;
while ( 1 )
{
SetJoystickAnalogDeadband ( 1 , 1 , 15 , 15 ) ;
SetJoystickAnalogDeadband ( 1 , 2 , 15 , 15 ) ;
SetJoystickAnalogDeadband ( 1 , 3 , 15 , 15 ) ;
SetJoystickAnalogDeadband ( 1 , 4 , 15 , 15 ) ;
B5U = GetJoystickDigital ( 1 , 5 , 2 ) ;
B5D = GetJoystickDigital ( 1 , 5 , 1 ) ;
B8D = GetJoystickDigital ( 1 , 8 , 1 ) ;
if ( B5U == 0 && B5D == 0 )
{
Arcade2 ( 1 , 4 , 3 , 2 , 4 , 1 , 0 ) ;
}
if ( B5U == 1 && B5D == 0 )
{
JoystickToMotor ( 1 , 3 , 6 , 0 ) ;
}
if ( B5D == 1 && B5U == 0 )
{
JoystickToMotor ( 1 , 4 , 8 , 0 ) ;
}
if ( B8D == 1 )
{
PlayAudioFile ( "desert1" , 0 , 0 ) ;
}
}
}
now i have no clue how to solve this, or even what is causing this. any help or insight would be greatly appreciated.