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

Go to the source code of this file.

Macros

#define SWITCH_SERVO_ON_VALUE   MAX_PPRZ
 
#define SWITCH_SERVO_OFF_VALUE   MIN_PPRZ
 
#define SWITCH_SERVO_SERVO   SWITCH
 
#define SwitchServoOn()   ({ switch_servo_on = true; false; })
 
#define SwitchServoOff()   ({ switch_servo_on = false; false; })
 

Functions

void switch_servo_init (void)
 
void switch_servo_periodic (void)
 

Variables

bool switch_servo_on
 
int16_t switch_servo_value
 

Macro Definition Documentation

◆ SWITCH_SERVO_OFF_VALUE

#define SWITCH_SERVO_OFF_VALUE   MIN_PPRZ

Definition at line 36 of file switch_servo.h.

◆ SWITCH_SERVO_ON_VALUE

#define SWITCH_SERVO_ON_VALUE   MAX_PPRZ

Definition at line 33 of file switch_servo.h.

◆ SWITCH_SERVO_SERVO

#define SWITCH_SERVO_SERVO   SWITCH

Definition at line 39 of file switch_servo.h.

◆ SwitchServoOff

#define SwitchServoOff ( )    ({ switch_servo_on = false; false; })

Definition at line 47 of file switch_servo.h.

◆ SwitchServoOn

#define SwitchServoOn ( )    ({ switch_servo_on = true; false; })

Definition at line 46 of file switch_servo.h.

Function Documentation

◆ switch_servo_init()

void switch_servo_init ( void  )

Definition at line 32 of file switch_servo.c.

References switch_servo_on, and switch_servo_periodic().

+ Here is the call graph for this function:

◆ switch_servo_periodic()

void switch_servo_periodic ( void  )

Definition at line 38 of file switch_servo.c.

References SWITCH_SERVO_OFF_VALUE, switch_servo_on, SWITCH_SERVO_ON_VALUE, SWITCH_SERVO_SERVO, SwitchServo, and TRUE.

Referenced by switch_servo_init().

+ Here is the caller graph for this function:

Variable Documentation

◆ switch_servo_on

bool switch_servo_on
extern

Definition at line 26 of file switch_servo.c.

Referenced by switch_servo_init(), and switch_servo_periodic().

◆ switch_servo_value

int16_t switch_servo_value
extern