Keyestudio 4WD Manual page 346

Mecanum robot car
Hide thumbs Also See for 4WD:
Table of Contents

Advertisement

www.keyestudio.com
① The "on start" command bl
program.
②Connect the IR receiver to P9
③Set the variable val to 0
④Set the variable val2 to 0
⑤In the "forever" instruction b
⑥Set val to IR button
⑦ When the variable val ≠ 0
program under then
⑧Set variable val2 to val
⑨When val2=70 is established
then
⑩The car goes forward
⑪When val2=68 is established
then
⑫Turn left
⑬When val2=67 is established
then
⑭Car turn right
⑮When val2=21 is established
then
⑯The car goes back
⑰When val2=64 is established
then
⑱The car stops
Click"JavaScript" to switch into the corresponding JavaScript code:
346

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents