I am compiling the code above. I want to be able to view the values on the serial monitor but it also run once. Is this because of the loop and needs to finish the rest of the loop to restart and display a value onto the serial monitor again?
How do I bypass this and allow to constantly display the values without affecting the performance within a loop?
I tried something like above but obviously, it's constantly true therefore it does not go through the rest of the loop. It might seem silly but how do I fix this problem?
You haven't given us enough code. What libraries are you including? The standard Arduino robot library doesn't have functions called clearMoves(), addMoves() or executeMoves() so that's either something you've written or some other library.
Does the buttons.bmp appear on the screen?
Does clearMoves() happen? (Do you have a way of observing this?)
Does addMoves() happen?
Does executeMoves() happen?
Work out where it's stopping among those four functions.
MorganS:
You haven't given us enough code. What libraries are you including? The standard Arduino robot library doesn't have functions called clearMoves(), addMoves() or executeMoves() so that's either something you've written or some other library.
Does the buttons.bmp appear on the screen?
Does clearMoves() happen? (Do you have a way of observing this?)
Does addMoves() happen?
Does executeMoves() happen?
Work out where it's stopping among those four functions.
Everything else in my code works. It's basically my own version of one of the libraries.
I want sensorValue to be keep printing on the serial monitor. But with the way the code works above, it only works once or not at all. I want to be able to loop the sensorValue and keep printing without affecting the other method calls. Does that make sense?
Well, since you PM'd the code to me then nobody else can see it and they won't understand my answer. It actually looks like a useful method to control the robot so it should be on public display.