NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
servo_config Struct Reference

Configuration for each servo which is editable by the user. More...

#include <mixer.h>

Data Fields

int16_t min
 Minimum pwm value that is sent to the servo. More...
 
int16_t max
 Maximum pwm value that is sent to the servo. More...
 
int16_t middle
 PWM value that is sent to center the servo (usually 1500) More...
 
int8_t rate
 range [-125;+125] ; can be used to adjust a rate 0-125% and a direction More...
 
uint8_t angleAtMin
 range [0;180] the measured angle in degrees from the middle when the servo is at the 'min' value. More...
 
uint8_t angleAtMax
 range [0;180] the measured angle in degrees from the middle when the servo is at the 'max' value. More...
 
int8_t forwardFromChannel
 RX channel index, 0 based. See CHANNEL_FORWARDING_DISABLED. More...
 
uint32_t reversedSources
 the direction of servo movement for each input source of the servo mixer, bit set=inverted More...
 

Detailed Description

Configuration for each servo which is editable by the user.

Field Documentation

uint8_t servo_config::angleAtMax

range [0;180] the measured angle in degrees from the middle when the servo is at the 'max' value.

uint8_t servo_config::angleAtMin

range [0;180] the measured angle in degrees from the middle when the servo is at the 'min' value.

int8_t servo_config::forwardFromChannel

RX channel index, 0 based. See CHANNEL_FORWARDING_DISABLED.

int16_t servo_config::max

Maximum pwm value that is sent to the servo.

int16_t servo_config::middle

PWM value that is sent to center the servo (usually 1500)

int16_t servo_config::min

Minimum pwm value that is sent to the servo.

int8_t servo_config::rate

range [-125;+125] ; can be used to adjust a rate 0-125% and a direction

uint32_t servo_config::reversedSources

the direction of servo movement for each input source of the servo mixer, bit set=inverted


The documentation for this struct was generated from the following file: