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

passthrough attitude stabilization More...

+ Include dependency graph for stabilization_attitude_passthrough.c:

Go to the source code of this file.

Macros

#define TRAJ_MAX_BANK   (int32_t)ANGLE_BFP_OF_REAL(GUIDANCE_H_MAX_BANK)
 

Functions

void stabilization_attitude_enter (void)
 Attitude control enter function. More...
 
void stabilization_attitude_run (bool in_flight, struct StabilizationSetpoint *sp, struct ThrustSetpoint *thrust, int32_t *cmd)
 Attitude control run function. More...
 

Detailed Description

passthrough attitude stabilization

This is useful for instance when having an AC that has needs no stabilization because it is already been done by other stabilization software onboard or just does not need it at all.

Definition in file stabilization_attitude_passthrough.c.

Macro Definition Documentation

◆ TRAJ_MAX_BANK

#define TRAJ_MAX_BANK   (int32_t)ANGLE_BFP_OF_REAL(GUIDANCE_H_MAX_BANK)

Definition at line 37 of file stabilization_attitude_passthrough.c.

Function Documentation

◆ stabilization_attitude_enter()

void stabilization_attitude_enter ( void  )

Attitude control enter function.

Definition at line 39 of file stabilization_attitude_passthrough.c.

◆ stabilization_attitude_run()

void stabilization_attitude_run ( bool  in_flight,
struct StabilizationSetpoint sp,
struct ThrustSetpoint thrust,
int32_t cmd 
)

Attitude control run function.

Parameters
[in]in_flighttrue if in flight
[in]sppointer to the stabilization setpoint structure
[in]thrustpointer to the thrust setoint structure
[out]cmdpointer to the output command vector

Definition at line 43 of file stabilization_attitude_passthrough.c.

References INT32_ANGLE_NORMALIZE, MAX_PPRZ, Int32Eulers::phi, Int32Eulers::psi, stab_sp_to_eulers_i(), stateGetNedToBodyEulers_i(), th_sp_to_thrust_i(), Int32Eulers::theta, THRUST_AXIS_Z, and TRAJ_MAX_BANK.

+ Here is the call graph for this function: