dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
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
{
37
float
fractional_progress
;
38
float
error
;
39
float
correction_direction
[2];
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
pathDesired
static PathDesiredData pathDesired
Definition:
fixedwingpathfollower.c:88
pios.h
Main PiOS header to include all the compiled in PiOS options.
path_status
Definition:
paths.h:36
path_status::fractional_progress
float fractional_progress
Definition:
paths.h:37
path_status::error
float error
Definition:
paths.h:38
status
int16_t status
Definition:
main.c:61
path_status::path_direction
float path_direction[2]
Definition:
paths.h:40
path_progress
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
openpilot.h
Includes PiOS and core architecture components.
path_status::correction_direction
float correction_direction[2]
Definition:
paths.h:39
flight
Libraries
inc
paths.h
Generated by
1.8.6