Computers and Technology
Computers and Technology, 10.05.2021 02:00, bvallinab

(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.
​

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:40, lmirandanvmi
Establish which of the following statements are true. (a) a sequence is convergent if and only if all of its subsequences are convergent. (b) a sequence is bounded if and only if all of its subsequences are bounded. (c) a sequence is monotonic if and only if all of its subsequences are monotonic.
Answers: 2
image
Computers and Technology, 22.06.2019 08:00, lindseyreneesmith7
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, QueenKy9576
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
image
Computers and Technology, 23.06.2019 02:00, hctlawton
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
Do you know the correct answer?
(pltw 2.0 robot c) #pragma config(Sensor, in2, potentiometer, sensorPotentiometer)
#pragma co...

Questions in other subjects:

Konu
Physics, 03.08.2019 02:00