Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stabilization_attitude_rc_setpoint.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012 Felix Ruess <felix.ruess@gmail.com>
3 *
4 * This file is part of paparazzi.
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, write to
18 * the Free Software Foundation, 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21
26#ifndef STABILIZATION_ATTITUDE_RC_SETPOINT_H
27#define STABILIZATION_ATTITUDE_RC_SETPOINT_H
28
29#include "std.h"
33
41 float last_ts; //< last timestamp (in seconds)
42};
43
48
58extern void stabilization_attitude_read_rc_setpoint(struct AttitudeRCInput *rc_sp, bool in_flight,
59 bool in_carefree, bool coordinated_turn, struct RadioControl *rc);
60
70extern void stabilization_attitude_read_rc_setpoint_earth_bound(struct AttitudeRCInput *rc_sp, bool in_flight,
71 bool in_carefree, bool coordinated_turn, struct RadioControl *rc);
72
82extern struct Int32Eulers stabilization_attitude_read_rc_setpoint_eulers(struct AttitudeRCInput *rc_sp, bool in_flight,
83 bool in_carefree, bool coordinated_turn, struct RadioControl *rc);
84
94extern struct FloatEulers stabilization_attitude_read_rc_setpoint_eulers_f(struct AttitudeRCInput *rc_sp, bool in_flight,
95 bool in_carefree, bool coordinated_turn, struct RadioControl *rc);
96
101
106
112
119
123
126extern float stabilization_attitude_get_heading_f(void);
127
128#endif /* STABILIZATION_ATTITUDE_RC_SETPOINT_H */
129
euler angles
Roation quaternion.
euler angles
uint16_t foo
Definition main_demo5.c:58
Paparazzi floating point algebra.
Paparazzi fixed point algebra.
Generic interface for radio control modules.
void stabilization_attitude_reset_care_free_heading(struct AttitudeRCInput *rc_sp)
Reset care free heading to current heading.
int32_t stabilization_attitude_get_heading_i(void)
Get attitude heading as int (avoiding jumps)
struct FloatEulers rc_eulers
RC input in eulers (needed even for quat for yaw integration)
struct FloatQuat rc_quat
RC input in quaternion.
void stabilization_attitude_reset_rc_setpoint(struct AttitudeRCInput *rc_sp)
Reset rc input to current state.
void stabilization_attitude_rc_setpoint_init(struct AttitudeRCInput *rc_sp)
Init rc input.
void stabilization_attitude_read_rc_setpoint_earth_bound(struct AttitudeRCInput *rc_sp, bool in_flight, bool in_carefree, bool coordinated_turn, struct RadioControl *rc)
Read attitude setpoint from RC as quaternion in earth bound frame Interprets the stick positions as a...
void stabilization_attitude_read_rc_roll_pitch_earth_quat_f(struct FloatQuat *q, float theta_offset, struct RadioControl *rc)
Read RC roll and pitch only, in earth bounded frame.
void stabilization_attitude_read_rc_roll_pitch_quat_f(struct FloatQuat *q, struct RadioControl *rc)
Read RC roll and pitch only.
void stabilization_attitude_read_rc_setpoint(struct AttitudeRCInput *rc_sp, bool in_flight, bool in_carefree, bool coordinated_turn, struct RadioControl *rc)
Read attitude setpoint from RC as quaternion Interprets the stick positions as axes.
float care_free_heading
care_free heading
struct Int32Eulers stabilization_attitude_read_rc_setpoint_eulers(struct AttitudeRCInput *rc_sp, bool in_flight, bool in_carefree, bool coordinated_turn, struct RadioControl *rc)
Read attitude setpoint from RC as euler angles Only the euler format is updated and returned.
float transition_theta_offset
pitch offset for hybrids, add when in forward mode
struct FloatEulers stabilization_attitude_read_rc_setpoint_eulers_f(struct AttitudeRCInput *rc_sp, bool in_flight, bool in_carefree, bool coordinated_turn, struct RadioControl *rc)
Read attitude setpoint from RC as float euler angles Only the euler format is updated and returned.
float stabilization_attitude_get_heading_f(void)
Get attitude heading as float (avoiding jumps)
Attitude (and Rate) Remote Control input.
int int32_t
Typedef defining 32 bit int type.