1 / 21

Intro to Programming

Intro to Programming. Programming in FTC . Modes of the game Autonomous Robot moves by itself Tele-op and End Game Robot responds to controls The two languages allowed RobotC LabVIEW. RobotC. Similar to C programming Text based For Help: www.robotc.net/forums Pros Compiles faster

jaunie
Télécharger la présentation

Intro to Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Intro to Programming

  2. Programming in FTC Modes of the game • Autonomous • Robot moves by itself • Tele-op and End Game • Robot responds to controls The two languages allowed • RobotC • LabVIEW

  3. RobotC • Similar to C programming • Text based • For Help: www.robotc.net/forums • Pros • Compiles faster • Smaller code • NXT can hold more programs • Cons • Harder to multitask • Doesn’t come with kit

  4. LabVIEW • Similar to NXT-G • Graphics based • For Help: http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460 • Pros • Easier multitasking • More visual • Comes with kit • Cons • Takes longer to compile • Larger code • Takes up more space on computer itself

  5. Connecting to your robot • USB • Connect cord • Bluetooth • Robot • NXT Brick • Communication Link Setup • Search • Connect

  6. Firmware

  7. RobotCProgramming Enviornment

  8. RobotCPragmas and Includes

  9. RobotCInitialization

  10. RobotCTask Main

  11. RobotCPragmas and Configuration • Controllers • Motors • Sensor • Servos • Wizard • Robot • Motor and Sensor setup • Controllers, Motors, Sensors, Servo

  12. RobotCProgramming Autonomous Mode

  13. RobotCDrive Trains • Tank Drive • Left Joystick  Left drive train • Right Joystick  Right drive train • Arcade Drive (think Playstation) • One Joystick  Throttle • Other Joystick  Steering

  14. RobotCProgramming the joystick controllers • 2 Joystick controllers • One is joy1 other is joy2 • 4 sections of the controller • Buttons, TopHat, Triggers, and Joysticks

  15. Buttons • Every button has a number

  16. TopHat

  17. Triggers

  18. Joysticks

  19. RobotCMovement and Encoders

  20. RobotCProgramming sensors • Types • Lego • Light, Color, Touch, Sound, Ultrasonic • HiTechnic • Gyro, Accelerometer, Magnetic, Force, IR, Compass

  21. Connecting to your robot cont… • Wi-Fi • Robot • NXT Brick • Communication Link Setup • Search • Connect

More Related