dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
paths.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef PATHS_H_
30 #define PATHS_H_
31 
32 #include "pios.h"
33 #include "openpilot.h"
34 #include "pathdesired.h"
35 
36 struct path_status {
38  float error;
40  float path_direction[2];
41 };
42 
43 void path_progress(const PathDesiredData *pathDesired, const float * cur_point, struct path_status * status);
44 
45 #endif /* PATHS_H_ */
46 
static PathDesiredData pathDesired
Main PiOS header to include all the compiled in PiOS options.
float fractional_progress
Definition: paths.h:37
float error
Definition: paths.h:38
int16_t status
Definition: main.c:61
float path_direction[2]
Definition: paths.h:40
void path_progress(const PathDesiredData *pathDesired, const float *cur_point, struct path_status *status)
Compute progress along path and deviation from it.
Definition: paths.c:62
Includes PiOS and core architecture components.
float correction_direction[2]
Definition: paths.h:39