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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
What is a society that has moved to the internet rather than relying on physical media called
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
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
question
Mathematics, 24.08.2019 22:50
question
Mathematics, 24.08.2019 22:50
Questions on the website: 13722363