Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Dummy stabilization for rotorcrafts. More...
#include "firmwares/rotorcraft/stabilization.h"
#include "firmwares/rotorcraft/stabilization/stabilization_direct.h"
#include "modules/radio_control/radio_control.h"
#include "generated/airframe.h"
#include "generated/modules.h"
Go to the source code of this file.
Functions | |
void | stabilization_direct_init (void) |
void | stabilization_direct_read_rc (void) |
void | stabilization_direct_enter (void) |
void | stabilization_direct_run (bool in_flight UNUSED, struct StabilizationSetpoint *sp UNUSED, struct ThrustSetpoint *thrust UNUSED, int32_t *cmd UNUSED) |
Variables | |
struct Int32Rates | stabilization_direct_rc_cmd |
Dummy stabilization for rotorcrafts.
Doesn't actually do any stabilization, just directly passes the RC commands along.
Definition in file stabilization_direct.c.
void stabilization_direct_enter | ( | void | ) |
Definition at line 52 of file stabilization_direct.c.
References INT_RATES_ZERO, and stabilization_direct_rc_cmd.
Referenced by stabilization_attitude_read_rc().
void stabilization_direct_init | ( | void | ) |
Definition at line 38 of file stabilization_direct.c.
References INT_RATES_ZERO, and stabilization_direct_rc_cmd.
void stabilization_direct_read_rc | ( | void | ) |
Definition at line 43 of file stabilization_direct.c.
References Int32Rates::p, Int32Rates::q, Int32Rates::r, radio_control_get(), RADIO_PITCH, RADIO_ROLL, RADIO_YAW, and stabilization_direct_rc_cmd.
Referenced by rc_cb().
void stabilization_direct_run | ( | bool in_flight | UNUSED, |
struct StabilizationSetpoint *sp | UNUSED, | ||
struct ThrustSetpoint *thrust | UNUSED, | ||
int32_t *cmd | UNUSED | ||
) |
Definition at line 57 of file stabilization_direct.c.
References Int32Rates::p, Int32Rates::q, Int32Rates::r, stabilization_direct_rc_cmd, th_sp_to_thrust_i(), and THRUST_AXIS_Z.
Referenced by stab_sp_rotate_f().
struct Int32Rates stabilization_direct_rc_cmd |
Definition at line 1 of file stabilization_direct.c.
Referenced by stabilization_direct_enter(), stabilization_direct_init(), stabilization_direct_read_rc(), and stabilization_direct_run().