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

RC commands state. Inputs are raw commands in range [1000-2000]. Outputs are RC commands in range [-500;500] after applying expo and other parameters. More...

#include <rc_command.h>

Collaboration diagram for rc_command:

Data Fields

int16_t roll
 
int16_t pitch
 
int16_t yaw
 
int16_t throttle
 
int16_t tpa
 Throttle PID Addjustment. TODO: this really does not belong in this class. More...
 
const struct rate_profileconfig
 current rate config More...
 
int16_t lookup_roll_pitch [PITCH_LOOKUP_LENGTH]
 lookup table for expo & RC rate PITCH+ROLL More...
 
int16_t lookup_yaw [YAW_LOOKUP_LENGTH]
 lookup table for expo & RC rate YAW More...
 
int16_t lookup_throttle [THROTTLE_LOOKUP_LENGTH]
 lookup table for expo & mid THROTTLE More...
 
struct rxrx
 

Detailed Description

RC commands state. Inputs are raw commands in range [1000-2000]. Outputs are RC commands in range [-500;500] after applying expo and other parameters.

Field Documentation

const struct rate_profile* rc_command::config

current rate config

int16_t rc_command::lookup_roll_pitch[PITCH_LOOKUP_LENGTH]

lookup table for expo & RC rate PITCH+ROLL

int16_t rc_command::lookup_throttle[THROTTLE_LOOKUP_LENGTH]

lookup table for expo & mid THROTTLE

int16_t rc_command::lookup_yaw[YAW_LOOKUP_LENGTH]

lookup table for expo & RC rate YAW

int16_t rc_command::pitch
int16_t rc_command::roll
struct rx* rc_command::rx
int16_t rc_command::throttle
int16_t rc_command::tpa

Throttle PID Addjustment. TODO: this really does not belong in this class.

int16_t rc_command::yaw

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