Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
servo_switch.h File Reference
#include "std.h"
#include "paparazzi.h"
#include "generated/airframe.h"
+ Include dependency graph for servo_switch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SERVO_SWITCH_ON_VALUE   2000
 
#define SERVO_SWITCH_OFF_VALUE   1000
 
#define SERVO_SWITCH_SERVO   SWITCH
 
#define ServoSwitchOn()   ({ servo_switch_on = TRUE; FALSE; })
 
#define ServoSwitchOff()   ({ servo_switch_on = FALSE; FALSE; })
 

Functions

void servo_switch_init (void)
 
void servo_switch_periodic (void)
 

Variables

bool_t servo_switch_on
 
int16_t servo_switch_value
 

Macro Definition Documentation

#define SERVO_SWITCH_OFF_VALUE   1000

Definition at line 36 of file servo_switch.h.

Referenced by servo_switch_periodic().

#define SERVO_SWITCH_ON_VALUE   2000

Definition at line 33 of file servo_switch.h.

Referenced by servo_switch_periodic().

#define SERVO_SWITCH_SERVO   SWITCH

Definition at line 39 of file servo_switch.h.

Referenced by servo_switch_periodic().

#define ServoSwitchOff ( )    ({ servo_switch_on = FALSE; FALSE; })

Definition at line 47 of file servo_switch.h.

#define ServoSwitchOn ( )    ({ servo_switch_on = TRUE; FALSE; })

Definition at line 46 of file servo_switch.h.

Function Documentation

void servo_switch_init ( void  )

Definition at line 32 of file servo_switch.c.

References FALSE, servo_switch_on, and servo_switch_periodic().

+ Here is the call graph for this function:

void servo_switch_periodic ( void  )

Definition at line 38 of file servo_switch.c.

References SERVO_SWITCH_OFF_VALUE, servo_switch_on, SERVO_SWITCH_ON_VALUE, SERVO_SWITCH_SERVO, ServoSwitch, and TRUE.

Referenced by servo_switch_init().

+ Here is the caller graph for this function:

Variable Documentation

bool_t servo_switch_on

Definition at line 26 of file servo_switch.c.

Referenced by servo_switch_init(), and servo_switch_periodic().

int16_t servo_switch_value