Hot answers tagged

2

Please note that I already have a loop encompassing the entire program if the colours are detected in the correct order. How about creating another loop for the failure case? Start loop 1 (correct order) Start loop 2 (wrong order) Initialization Check for colours If correct order Do something End loop 1 (correct order) Else Do some other ...


2

Perhaps you need to add some hysteresis in your sensor loops. Each loop waits for a condition to be met, but then repeats infinity as long as that condition is met. Hysteresis means waiting for another condition to indicate that the sensor has returned to the original state and usually includes a deadband (meaning the positive trigger is not the same as the ...


1

Don't use the Move Tank or Move Steer blocks. Use the Large Motor block for controlling a single motor instead.


1

With ev3dev pretty much any programming language you can run or compile for the ARM board can be used. All you really need to be able to do is read and write to a file. This is because ev3dev is based on Debian Linux and has drivers to communicate with the hardware through virtual files. That being said, typically you will probably want to use a library ...


Only top voted, non community-wiki answers of a minimum length are eligible