Rehg, James A. Introduction to Robotics in CIM Systems, 5 th Edition, Prentice H
ID: 3581313 • Letter: R
Question
Rehg, James A. Introduction to Robotics in CIM Systems, 5th Edition, Prentice Hall, 2003 Martin, F. G., Robotic Explorations: A Hands-on Introduction to Engineering, Prentice-Hall,
QUESTION 4 5 points Save Answer Consider a program that will make your Boe-Bot navigate counter-clockwise along a circular course as shown below. Assume the diameter of the circle to be about 1 m. Sample Course In the program given below, select the values for X (P13) and Y (P12) in the PULSOUT commands that will result in the desired circular motion of the Boe-Bot. {$STAMP BS2) "{$PBASIC 2.5) DEBUG "Program running!" pulseCount VAR Word Pulse count to servos FREQOUT 4, 2000, 3000 Signal program start/reset. Main Routine Main: PULSOUT 13, X PULSOUT 12, Y PAUSE 20 LOOP (Select the one best answer from the choices given below. Oax 850 and Y 650 (Full Speed: P 13 CCW, P12 CW Forward) 650 and Y 850 (Full Speed: P13 CW, P12 CCW Backward) OcX 850 and Y 850 (Full Speed: P13 CCW, P12 CCW Right rotate) Odx 650 and Y 650 (Full Speed: P13 CW, P12 CW Left rotate) O X 750 and Y 850 (P13 stopped, P12 CCW Full speed Pivot back left) OtX 650 and Y 750 (P13CW Full Speed, P12 Stopped Pivot back right) 750 and Y 750 (P13 Stopped, P12 Stopped Stopped) Oh X 760 and Y 740 (P13 CCw Slow, P12 CW Slow Forward slow) OL X 770 and Y 730 (P13 CCW Med, P12 CW Med Forward med Oi X 850 and Y 700 (P13 CCW Full Speed, P12 CW Medium Veer right O X 800 and Y 650 (P13 CCW Medium, P12 CW Full Speed Veer left)Explanation / Answer
Answer :
Question 6:
In programming the Boe-Bot in PBASIC, what command is used to decide whether to jump to different subroutines depending on the value of a variable? (Select the one best answer from the choices given below.)
Answer :
c.GOSUB
Explanation :
The GOSUB is used to jump to different subroutines depending on the value of a variable. The IF…THEN command is used to decide which subroutine to jump to.
.............