Astrobot Coding Challenges

Activity Video Introduction
 

NOTE: Remember to switch from the Rover to the Astrobot Model on Jimu or you code will not work correctly!!

Astrobot Task 1 - Taking out the Trash!

Astrobot is being used to help clean up around Loreto by picking up trash and dropping it into the bin. You have to write the code that will help Astrobot accomplish this task. The flowchart below shows the steps that you will need to code. There is an example video below the flowchart image. You will need to use the wait until IR sensor code show below to work out when Astrobot has trash to pick up. You will need to work out how far away from the sensor the trash needs to be placed!

Video Demonstration - this is what your Astrobot must do!

 


Astrobot Task 2 - Sensor Distance

Use the Flowchart to the right to work out what you have to do. What sensor will you need to use?