I am working on the auton selector which is 2 limit switches that are held down with zip ties, one for color, and one for position. When I compile it in robotC it says “Mismatched typedefs. Converting typedef ‘char’ to typedef ‘tSensors’, value ‘leftpot’” What does this mean? Here is the code…
task autonomous()
{
if (SensorValue(autonleftright)== 1 && SensorValue(autoncolor == 1))//blue right
{
while (SensorValue(chassisleft) < 313.6)
{
motor[port2] = -127;
motor[port4] = -127;
motor[port7] = -127;
motor[port9 ] = -127;
}
motor[Launcher1]=127;
motor[Launcher2]=127;
wait1Msec (100);
motor[Launcher1]=-127;
motor[Launcher2]=-127;
wait1Msec (100);
}
}