Instructions

6. Log Data

For the next if-do block you will tell the rover how often to log data and what data to log.

Connect the () > () block found under the Logics tab to the second if-do block. This allows you to tell the rover when to log a reading based on the current timer value. 


Add a current timer block and a value to the inequality to determine how often to log data. The timer counts in seconds. The example below tells the robot to log data every 60 seconds.


In the do- portion of this if-do block, tell the rover what data you want logged. You can do this by duplicating the blocks from the beginning of the program or connecting new ones found under the Sensors tab.

The example below tells the rover to log temperature and humidity data each 60 seconds.

After the logging blocks, add a reset timer block to start the timer over again.