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, 22.06.2019 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
You know the right answer?
(pltw 2.0 robot c) #pragma config(Sensor, in2, potentiometer, sensorPotentiometer)
#pragma co...
Questions
question
English, 19.11.2020 23:50
question
History, 19.11.2020 23:50
Questions on the website: 13722362