August 22, 2018
I am getting a yellow warning message (green text below here) in the bug box and although we get the “success sound” after “programming Edison,” the program is doing absolutely nothing with Edison once we disconnect from the cord and try to run the program.
Some sensor data is stored in Edison’s memory. You may need to clear the sensor data for your program to work correctly. Learn More
I am completely new to ANY type of programming and have no clue what I’m doing but am trying to help my child with this.
When I click on the “learn more” at the end of the yellow warning message above that appears in the bug box, it takes me to this “help:”
Some sensor data is stored in Edison’s memory. You may need to clear the sensor data for your program to work correctly.
All of Edison’s sensors generate data when they detect specific events. Some of this sensor data is stored in Edison’s memory. This stored data can sometimes be a problem, making the robot react to an old event because the robot still ‘remembers’ the old event.
For example, when Edison checks if a condition has been met, if there is stored data, the robot will think that the condition has been met, even if it has not been met. For this reason, it is good coding practice to clear the sensor data. Clearing the sensing data is especially important when you use sensor events in conditionals (such as ‘if’ or ‘until’ blocks) which are nested inside loops. This prevents data from a previous loop to affect the next loop.
It is also best to clear the data at the start of a program, just in case the robot has old data stored from a previous program.
The concept of what it is saying makes sense to me, but I have no idea HOW to clear data before I would begin any new program. What does that mean and where would I do that in the EdScratch online programming app?
Thanks for any help!!
August 24, 2015
Clearing the data in a sensor is done with the “Clear [drop-down] sensor data” block that can be found in the sensor category.
To clear data before you would begin any new program, use the clear sensor data block as the very first block in the program (connected directly to the start block)
This is needed in some cases, but should not be needed for a simple program.
Can you please log in, save the program and send through a share code?
What is the program suppose to do?