Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lesson 18 – how to add a new button for pivot right

Similar presentations


Presentation on theme: "Lesson 18 – how to add a new button for pivot right"— Presentation transcript:

1 Lesson 18 – how to add a new button for pivot right
Day 10 Lesson 18 – how to add a new button for pivot right

2 Step 1 – Open Lesson18HBridgeMotorControl

3 Step 2 – Save as MyIRRobotControl

4 Keep in mind Pivot Right Forward button
We want number pad button 3 to be pivot right forward, meaning go forward and right. A pivot right forward means the right wheel is stopped and the left wheel is turning counterclockwise. The button on the remote control is the number 3. The command for this button is 2.

5 Step 3 – Add MOTOR_PIVOTRIGHT_FORWARD button definition
Added Line

6 Step 4 – Add Command Case to setDirection()
Added Case

7 Step 5 – Add pivotRightForward() method
New Method

8


Download ppt "Lesson 18 – how to add a new button for pivot right"

Similar presentations


Ads by Google