sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
Output.cpp File Reference
#include "Arduino.h"
#include "config.h"
#include "def.h"
#include "types.h"
#include "MultiWii.h"
#include "Alarms.h"

Macros

#define PIDMIX(X, Y, Z)   rcCommand[THROTTLE] + axisPID[ROLL]*X + axisPID[PITCH]*Y + YAW_DIRECTION * axisPID[YAW]*Z
 
#define SERVODIR(n, b)   ((conf.servoConf[n].rate & b) ? -1 : 1)
 

Functions

void initializeSoftPWM (void)
 
void writeServos ()
 
void writeMotors ()
 
void writeAllMotors (int16_t mc)
 
void initOutput ()
 
int16_t get_middle (uint8_t nr)
 
void mixTable ()
 

Macro Definition Documentation

#define PIDMIX (   X,
  Y,
  Z 
)    rcCommand[THROTTLE] + axisPID[ROLL]*X + axisPID[PITCH]*Y + YAW_DIRECTION * axisPID[YAW]*Z
#define SERVODIR (   n,
  b 
)    ((conf.servoConf[n].rate & b) ? -1 : 1)

Function Documentation

int16_t get_middle ( uint8_t  nr)
void initializeSoftPWM ( void  )
void initOutput ( )
void mixTable ( )
void writeAllMotors ( int16_t  mc)
void writeMotors ( )
void writeServos ( )