2014 Eurobot fork
Dependencies: mbed-rtos mbed QEI
Processes/Motion/motion.h@66:f1d75e51398d, 2013-04-14 (annotated)
- Committer:
- madcowswe
- Date:
- Sun Apr 14 17:22:20 2013 +0000
- Revision:
- 66:f1d75e51398d
- Parent:
- 57:d434ceab6892
- Child:
- 69:4b7bb92916da
Obstacle avoidance working smoothly, fairly hacked motion-ai communication of override
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rsavitski | 24:50805ef8c499 | 1 | #ifndef EUROBOT_PROCESSES_MOTION_MOTION_H_ |
rsavitski | 24:50805ef8c499 | 2 | #define EUROBOT_PROCESSES_MOTION_MOTION_H_ |
rsavitski | 24:50805ef8c499 | 3 | |
rsavitski | 24:50805ef8c499 | 4 | #include "globals.h" |
rsavitski | 24:50805ef8c499 | 5 | #include "rtos.h" |
rsavitski | 24:50805ef8c499 | 6 | |
rsavitski | 24:50805ef8c499 | 7 | namespace motion |
rsavitski | 24:50805ef8c499 | 8 | { |
rsavitski | 24:50805ef8c499 | 9 | |
madcowswe | 66:f1d75e51398d | 10 | extern volatile int collavoiden; |
madcowswe | 66:f1d75e51398d | 11 | |
rsavitski | 24:50805ef8c499 | 12 | void motionlayer(void const *dummy); |
rsavitski | 57:d434ceab6892 | 13 | void waypoint_motion_handler(); |
rsavitski | 24:50805ef8c499 | 14 | |
rsavitski | 57:d434ceab6892 | 15 | // TODO: privatise (via unnamed namespace) non-API parts |
rsavitski | 57:d434ceab6892 | 16 | void setNewWaypoint(osThreadId setter_tid_in, Waypoint *new_wp); |
rsavitski | 57:d434ceab6892 | 17 | |
rsavitski | 57:d434ceab6892 | 18 | |
rsavitski | 39:44d3dea4adcc | 19 | |
rsavitski | 57:d434ceab6892 | 20 | bool checkMotionStatus(); |
rsavitski | 57:d434ceab6892 | 21 | |
rsavitski | 57:d434ceab6892 | 22 | |
rsavitski | 57:d434ceab6892 | 23 | // TODO: consider making mutex private and pushing all usage into API funcs |
rsavitski | 39:44d3dea4adcc | 24 | extern Mutex waypoint_flag_mutex; |
rsavitski | 39:44d3dea4adcc | 25 | |
rsavitski | 24:50805ef8c499 | 26 | } |
rsavitski | 24:50805ef8c499 | 27 | |
rsavitski | 24:50805ef8c499 | 28 | #endif //EUROBOT_PROCESSES_MOTION_MOTION_H_ |