subject

You are developing an easycpro program for a robot with two motors and four sensors (two bumper switches and two limit switches) to perform the following tasks: the robot should continue moving until it hits an obstacle. upon hitting an obstacle (any one of the sensors is activated), it should stop, pause, backup, pause, turn and continue. a) explain what is happening in the code outlined by the red box. b) fill in the missing code where indicated. #include "main. h"void main (void){int limit1; int limit2; int bumper1; int bumper2; while (1==1){limit1 = getdigitalinput (5); limit2 = getdigitalinput (6); san josé state universitye10 introduction to engineeringpage 4 of 4bumper1 = getdigitalinput (7); bumper2 = getdigitalinput (8); if(limit1==1 & & limit2==1 & & bumper1==1 & & bumper2==1){setpwm (1, 127); setpwm (2, -127); }else{fill in program here}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, westjayson69
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
image
Computers and Technology, 23.06.2019 02:30, paolaviviana
Experimental data that is expressed using numbers is said to be
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, scoutbuffy2512
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
image
Computers and Technology, 24.06.2019 10:40, 29delphina
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
You know the right answer?
You are developing an easycpro program for a robot with two motors and four sensors (two bumper swit...

Questions in other subjects:

Konu
History, 01.09.2019 03:50
Konu
Geography, 01.09.2019 03:50