Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed QEI
motion.h
00001 #ifndef EUROBOT_PROCESSES_MOTION_MOTION_H_ 00002 #define EUROBOT_PROCESSES_MOTION_MOTION_H_ 00003 00004 #include "globals.h" 00005 #include "rtos.h" 00006 00007 namespace motion 00008 { 00009 00010 extern volatile int collavoiden; 00011 00012 void motionlayer(void const *dummy); 00013 void waypoint_motion_handler(); 00014 00015 // supports both polling on sticky bit via checkMotionStatus(), waiting/blocking on signal 0x1 in setter thread (signalled upon reaching the wp) 00016 void setNewWaypoint(osThreadId setter_tid_in, Waypoint *new_wp); 00017 bool checkMotionStatus(); 00018 00019 00020 // TODO: consider making mutex private and pushing all usage into API funcs 00021 extern Mutex waypoint_flag_mutex; 00022 00023 } 00024 00025 #endif //EUROBOT_PROCESSES_MOTION_MOTION_H_
Generated on Wed Jul 13 2022 18:41:59 by
