I am the main coder for our team and I am trying to do a command where it is a wait by it ends when a sensor event happens. On other systems, this would be done by waitUntil(statement) but this does not work on Vexcode V5 pro. Please help
waitUntil
should be defined in VEXcode Pro V5, but if we look in the default vex.h
we can see it’s just a macro for the following:
do {
wait(5, msec);
} while (!(condition))
so if you don’t have access to waitUnitl
for some reason you could use that snippet instead.
3 Likes