Start EasyC - PowerPoint PPT Presentation

start easyc n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Start EasyC PowerPoint Presentation
Download Presentation
Start EasyC

play fullscreen
1 / 96
Start EasyC
132 Views
Download Presentation
naiara
Download Presentation

Start EasyC

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Start EasyC

  2. “Main” automatically created for us

  3. Configuration • Double-click Config • See Picture • Label Motor Ports • Empty • Left Front Drive Motor • Left Rear Drive Motor • Right Front Drive Motor • Right Rear Drive Motor • Lift Motor • Claw SERVO • Add “Invert Me” Reminder to names later if needed • OK or Enter to return to Main

  4. Back to “Main”

  5. “Initialize” subroutine automatically created for us

  6. “Autonomous” subroutine automatically created for us

  7. “OperatorControl” subroutine automatically created for us

  8. Add our instructions to Initialize

  9. Outputs are for sending commands to Motors, etc.

  10. Open Outputs

  11. Select “Motor”

  12. Click-&-Drag Motor onto flowchart line

  13. “Motor Module” default window opens Change Motor Number to “2” Change Motor Direction to “Stop” 2

  14. Click-&-Drag another Motor Module 2

  15. Modify this seconds Motor Module Change Motor Number to “3” Change Motor Direction to “Stop” 3

  16. 2 3

  17. Repeat for two more Motor Modules for Motors 4 & 5 4 5

  18. All “Drive” Motors will be init’ed to 0 = “Stop” 2 3 4 5

  19. Select the “Program Flow” group 2 3 4 5

  20. See the “Comment” Function Block 2 3 4 5

  21. Select Comment 2 3 4 5

  22. Click & Drag onto the Flowchart Line 2 3 4 Enter a useful comment into the pop-up window 5

  23. Comments involve style – Use them to help, not punish  2 3 4 5

  24. Added a comment about the “Lift Motor” 2 3 4 5

  25. Added a Motor Block to init the Lift to 0 = Stop 2 3 4 5 6

  26. Added a Comment about the Claw Servo 2 3 4 5 6

  27. Click-&-Drag a Servo Function Block onto the Flowchart 7 2 3 4 5 Using 0 will “center” the Servo. You should experiment to find a good value between -127 & +127 for your robot. 6

  28. Initialization is Done (except for servo experiment results) 2 3 4 5 6 7

  29. Switch to Operator Control – Notice the “While” Loop

  30. Select the Joystick

  31. See lots of Choices

  32. Pick 1 – I chose 4-Motor Arcade to keep the 2nd Stick free

  33. Click & Drag 4-Motor Arcade to the While Loop

  34. Make, Xmitter, Jstck, Motor Port & Inversion assignments 2 4 3 5 You have a Single Transmitter Under the Transmitter heading the “Joystick” label is unclear. You pick a Transmitter (1 or 2) there, not a Transmitter Channel. (1 thru 8)