subject

(pltw 2.0 robot c) #pragma config(Sensor, in2, potentiometer, sensorPotentiometer)
#pragma config(Sensor, dgtl1, bumpy, sensorTouch)
#pragma config(Sensor, dgtl2, bumpy2, sensorTouch)
#pragma config(Motor, port2, motor, tmotorVex393_MC29, openLoop)
//**//

task main()
{
untilTouch(dgtl11);
startMotor(port2, 63.5);
waitInMilliseconds(100);
stopMotor(port2);
untilTouch(dgtl12);
backward(63.5);
stopMotor(port2);

}

Basically I need it when I touch one button It moves the motor for 100 milliseconds stopping at the booth then when I touch the other button (theres two) it goes back to the default position. I just need to know what I did wrong since it only wants to go backwards then it does nothing please help.
​

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Following are uses of spreadsheets. for each use, choose whether the use is a business use, consumer use, or student use. family budget: sales data: recording research data for science class:
Answers: 2
question
Computers and Technology, 24.06.2019 19:30
Dtp allows you to manipulate text boxes in the following ways. more than 1 answer. a.move them b.rotate them c.resize them d.all of the above e.none of the above
Answers: 1
You know the right answer?
(pltw 2.0 robot c) #pragma config(Sensor, in2, potentiometer, sensorPotentiometer)
#pragma co...
Questions
Questions on the website: 13722362