2014 Eurobot fork
Dependencies: mbed-rtos mbed QEI
Diff: Processes/Motion/motion.cpp
- Revision:
- 65:4709ff6c753c
- Parent:
- 57:d434ceab6892
- Child:
- 67:be3ea5450cc7
--- a/Processes/Motion/motion.cpp Sat Apr 13 22:42:01 2013 +0000 +++ b/Processes/Motion/motion.cpp Sun Apr 14 17:57:12 2013 +0000 @@ -103,9 +103,7 @@ wp_a_reached = true; } } - waypoint_flag_mutex.unlock(); - - waypoint_flag_mutex.lock(); // proper way would be to construct a function to evaluate the condition and pass the function pointer to a conditional setter function for reached flag + // proper way would be to construct a function to evaluate the condition and pass the function pointer to a conditional setter function for reached flag if (wp_d_reached && wp_a_reached) { setWaypointReached();