

#pragma config(Sensor, dgtl1, Bump, sensorTouch) #pragma config(Sensor, in1, Color, sensorReflection) I have searched for the past 5 days trying to find a solution for myself but I have now realized I need more help. I get errors where both else statements appear. The sensor value determines the rotation of a servo with a plate on it for where the marbles should go… The code is in Vex Cortex 2.0 and PLTW Natural language and is available below. I am trying to use if else else statements to achieve this. The values are as followed, Plastic = less then 600, Wood = between 6 and metal = over 1000. Hello forum users! I am new here and have a project due next week Monday, I have built a robot and coded it so that it can sort 3 types of marbles (Metal, wood and clear plastic) I am using a light sensor to differentiate between the 3.
