Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
stabilization_direct.c File Reference

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"
+ Include dependency graph for stabilization_direct.c:

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
 

Detailed Description

Dummy stabilization for rotorcrafts.

Doesn't actually do any stabilization, just directly passes the RC commands along.

Definition in file stabilization_direct.c.

Function Documentation

◆ stabilization_direct_enter()

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().

+ Here is the caller graph for this function:

◆ stabilization_direct_init()

void stabilization_direct_init ( void  )

Definition at line 38 of file stabilization_direct.c.

References INT_RATES_ZERO, and stabilization_direct_rc_cmd.

◆ stabilization_direct_read_rc()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stabilization_direct_run()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ stabilization_direct_rc_cmd