Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
rotwing_state_V2.h File Reference
#include "std.h"
+ Include dependency graph for rotwing_state_V2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RotwingState
 
struct  RotWingStateSettings
 
struct  RotWingStateSkewing
 

Macros

#define ROTWING_STATE_HOVER   0
 Rotwing States. More...
 
#define ROTWING_STATE_SKEWING   1
 
#define ROTWING_STATE_FW   2
 
#define ROTWING_STATE_FW_HOV_MOT_IDLE   3
 
#define ROTWING_STATE_FW_HOV_MOT_OFF   4
 
#define ROTWING_STATE_FREE   5
 
#define ROTWING_CONFIGURATION_HOVER   0
 Rotwing Configurations. More...
 
#define ROTWING_CONFIGURATION_HYBRID   1
 
#define ROTWING_CONFIGURATION_EFFICIENT   2
 
#define ROTWING_CONFIGURATION_FREE   3
 
#define ROTWING_STATE_WING_QUAD_SETTING   0
 
#define ROTWING_STATE_WING_SCHEDULING_SETTING   1
 
#define ROTWING_STATE_WING_FW_SETTING   2
 
#define ROTWING_STATE_PITCH_QUAD_SETTING   0
 
#define ROTWING_STATE_PITCH_TRANSITION_SETTING   1
 
#define ROTWING_STATE_PITCH_FW_SETTING   2
 

Functions

void init_rotwing_state (void)
 
void periodic_rotwing_state (void)
 
void request_rotwing_state (uint8_t state)
 
void rotwing_request_configuration (uint8_t configuration)
 
void rotwing_state_skew_actuator_periodic (void)
 
void rotwing_state_force_skew_off (void)
 

Variables

struct RotwingState rotwing_state
 
struct RotWingStateSettings rotwing_state_settings
 
struct RotWingStateSkewing rotwing_state_skewing
 
float rotwing_state_max_hover_speed
 
bool hover_motors_active
 
bool bool_disable_hover_motors
 
bool demo_skew
 
float max_skew_demo
 
float min_skew_demo
 
float freq_skew_demo
 

Data Structure Documentation

◆ RotwingState

struct RotwingState

Definition at line 47 of file rotwing_state_V2.h.

Data Fields
uint8_t current_state
uint8_t desired_state
uint8_t requested_config

◆ RotWingStateSettings

struct RotWingStateSettings

Definition at line 61 of file rotwing_state_V2.h.

Data Fields
bool force_forward
bool hover_motors_active
bool hover_motors_disable
float max_v_climb
float max_v_descend
float nav_max_speed
uint8_t preferred_pitch_setting
float preferred_pitch_value
bool stall_protection
uint8_t wing_scheduler

◆ RotWingStateSkewing

struct RotWingStateSkewing

Definition at line 74 of file rotwing_state_V2.h.

Data Fields
bool airspeed_scheduling
bool force_rotation_angle
int32_t servo_pprz_cmd
float wing_angle_deg
float wing_angle_deg_sp

Macro Definition Documentation

◆ ROTWING_CONFIGURATION_EFFICIENT

#define ROTWING_CONFIGURATION_EFFICIENT   2

Definition at line 44 of file rotwing_state_V2.h.

◆ ROTWING_CONFIGURATION_FREE

#define ROTWING_CONFIGURATION_FREE   3

Definition at line 45 of file rotwing_state_V2.h.

◆ ROTWING_CONFIGURATION_HOVER

#define ROTWING_CONFIGURATION_HOVER   0

Rotwing Configurations.

Definition at line 42 of file rotwing_state_V2.h.

◆ ROTWING_CONFIGURATION_HYBRID

#define ROTWING_CONFIGURATION_HYBRID   1

Definition at line 43 of file rotwing_state_V2.h.

◆ ROTWING_STATE_FREE

#define ROTWING_STATE_FREE   5

Definition at line 38 of file rotwing_state_V2.h.

◆ ROTWING_STATE_FW

#define ROTWING_STATE_FW   2

Definition at line 35 of file rotwing_state_V2.h.

◆ ROTWING_STATE_FW_HOV_MOT_IDLE

#define ROTWING_STATE_FW_HOV_MOT_IDLE   3

Definition at line 36 of file rotwing_state_V2.h.

◆ ROTWING_STATE_FW_HOV_MOT_OFF

#define ROTWING_STATE_FW_HOV_MOT_OFF   4

Definition at line 37 of file rotwing_state_V2.h.

◆ ROTWING_STATE_HOVER

#define ROTWING_STATE_HOVER   0

Rotwing States.

Definition at line 33 of file rotwing_state_V2.h.

◆ ROTWING_STATE_PITCH_FW_SETTING

#define ROTWING_STATE_PITCH_FW_SETTING   2

Definition at line 59 of file rotwing_state_V2.h.

◆ ROTWING_STATE_PITCH_QUAD_SETTING

#define ROTWING_STATE_PITCH_QUAD_SETTING   0

Definition at line 57 of file rotwing_state_V2.h.

◆ ROTWING_STATE_PITCH_TRANSITION_SETTING

#define ROTWING_STATE_PITCH_TRANSITION_SETTING   1

Definition at line 58 of file rotwing_state_V2.h.

◆ ROTWING_STATE_SKEWING

#define ROTWING_STATE_SKEWING   1

Definition at line 34 of file rotwing_state_V2.h.

◆ ROTWING_STATE_WING_FW_SETTING

#define ROTWING_STATE_WING_FW_SETTING   2

Definition at line 55 of file rotwing_state_V2.h.

◆ ROTWING_STATE_WING_QUAD_SETTING

#define ROTWING_STATE_WING_QUAD_SETTING   0

Definition at line 53 of file rotwing_state_V2.h.

◆ ROTWING_STATE_WING_SCHEDULING_SETTING

#define ROTWING_STATE_WING_SCHEDULING_SETTING   1

Definition at line 54 of file rotwing_state_V2.h.

Function Documentation

◆ init_rotwing_state()

◆ periodic_rotwing_state()

◆ request_rotwing_state()

void request_rotwing_state ( uint8_t  state)

Definition at line 296 of file rotwing_state_V2.c.

References RotwingState::desired_state, rotwing_state, ROTWING_STATE_FW_HOV_MOT_OFF, and state.

Referenced by rotwing_request_configuration(), and rotwing_state_free_processor().

+ Here is the caller graph for this function:

◆ rotwing_request_configuration()

◆ rotwing_state_force_skew_off()

void rotwing_state_force_skew_off ( void  )

◆ rotwing_state_skew_actuator_periodic()

Variable Documentation

◆ bool_disable_hover_motors

bool bool_disable_hover_motors
extern

Definition at line 159 of file rotwing_state_V2.c.

Referenced by periodic_rotwing_state(), and rotwing_state_set_state_settings().

◆ demo_skew

bool demo_skew
extern

◆ freq_skew_demo

float freq_skew_demo
extern

Definition at line 164 of file rotwing_state_V2.c.

Referenced by rotwing_state_skewer().

◆ hover_motors_active

bool hover_motors_active
extern

Definition at line 158 of file rotwing_state_V2.c.

Referenced by periodic_rotwing_state(), and rotwing_state_set_state_settings().

◆ max_skew_demo

float max_skew_demo
extern

Definition at line 162 of file rotwing_state_V2.c.

Referenced by rotwing_state_skewer().

◆ min_skew_demo

float min_skew_demo
extern

Definition at line 163 of file rotwing_state_V2.c.

Referenced by rotwing_state_skewer().

◆ rotwing_state

◆ rotwing_state_max_hover_speed

float rotwing_state_max_hover_speed
extern

Definition at line 151 of file rotwing_state_V2.c.

Referenced by rotwing_state_set_hover_settings().

◆ rotwing_state_settings

◆ rotwing_state_skewing