1 / 25

Easy c getting started

Easy c getting started.

khoi
Download Presentation

Easy c getting started

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. Easy c getting started • The program allows programmers to enable the joystick or to disable it. Use a new standalone project and then select either joystick or autonomous. In some cases, the robot can run automatically unless interrupted by the joystick. This could be a good idea in case a robot “accidentally” runs amuck.

  2. Using the Development Environment The fancy programming environment starts off with the robot doing nothing. However, it gives us some ideas of where things can go. For now, code will be placed just before the “end” flag. The first objective will utilize Output functions and Program Flow functions. Students may explore other function types, however they are not required yet.

  3. Outputting to the Motor • Add a motor module to your program. The motor module comes with two variables. The first says what motor will be used. The second describes the voltage. Using a negative number will reverse the voltage and make the motor spin the other way. To make more than one motor move, the programmer will need to add more than one motor module. Look on the robot to see what number the motors are.

  4. Uploading the Program • When you have a program, plug in the robot with the orange tethering cord to the main CPU. Then, use the build and download program to send the program to the robot. Try to make a program that will have the robot move forward, move backwards and turn around. Try to find ways to output to all the motors on the bot.

  5. Review Easy C: Getting Started Using the Development Environment Outputting to the motor Uploading the program

  6. Mission Objective • In this mission the robot will function in automatic mode. The robot will start on one side of the hall. It will then go back and forth to end up on the far side of the hall. It will then stop with the program ending. Score will be based on the following formula: • Score = 105 – seconds • That means that a robot that does the mission in 6 seconds gets a 99% for the grade.

  7. Break the Mission Down Into Steps • Wait until the button is pressed • Go forward • Stop when touch wall • Go back to start • Stop when touch wall • Go forward • Stop and stay stopped when touch wall

  8. Press f5 and set input/output settings for sensor.

  9. Figure 8 Challenge Rubric • Robot does figure 8s: 60% • Robot uses Ultra Sonic Sensor to avoid objects: 20% • Robot uses Bumper Switch to respond to collisions: 10% • Robot arm moves with “style”: 5% • Student Explains what robot is doing: 5%

More Related