Easy c getting started
description
Transcript of Easy c getting started
![Page 1: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/1.jpg)
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.
![Page 2: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/2.jpg)
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. Studentsmay explore otherfunction types, however they are notrequired yet.
![Page 3: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/3.jpg)
Outputting to the MotorAdd 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 numberthe motors are.
![Page 4: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/4.jpg)
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.
![Page 5: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/5.jpg)
Review
Easy C: Getting StartedUsing the Development EnvironmentOutputting to the motorUploading the program
![Page 6: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/6.jpg)
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.
![Page 7: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/7.jpg)
![Page 8: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/8.jpg)
![Page 9: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/9.jpg)
Break the Mission Down Into StepsWait until the button is pressed Go forward Stop when touch wallGo back to startStop when touch wallGo forward Stop and stay stopped when touch wall
![Page 10: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/10.jpg)
![Page 11: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/11.jpg)
![Page 12: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/12.jpg)
![Page 13: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/13.jpg)
PRESS F5 AND SET INPUT/OUTPUT SETTINGS FOR SENSOR.
![Page 14: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/14.jpg)
![Page 15: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/15.jpg)
Figure 8 Challenge RubricRobot 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%
![Page 16: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/16.jpg)
![Page 17: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/17.jpg)
![Page 18: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/18.jpg)
![Page 19: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/19.jpg)
![Page 20: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/20.jpg)
![Page 21: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/21.jpg)
![Page 22: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/22.jpg)
![Page 23: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/23.jpg)
![Page 24: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/24.jpg)
![Page 25: Easy c getting started](https://reader036.fdocuments.in/reader036/viewer/2022062814/568166a2550346895dda8cd4/html5/thumbnails/25.jpg)