Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2116 → Rev 2117

/branches/dongfang_FC_rewrite/configuration.h
84,9 → 84,11
*/
 
typedef struct {
uint8_t trim;
uint8_t variableOffset;
uint8_t channels[MAX_CHANNELS];
} channelMap_t;
extern channelMap_t channelMap;
} ChannelMap_t;
extern ChannelMap_t channelMap;
 
typedef struct {
char name[12];
104,7 → 106,7
uint8_t minValue;
uint8_t maxValue;
uint8_t flags;
} servo_t;
} Servo_t;
 
#define SERVO_STABILIZATION_REVERSE 1
 
196,7 → 198,7
// Servos
uint8_t servoCount;
uint8_t servoManualMaxSpeed;
servo_t servoConfigurations[2]; // [PITCH, ROLL]
Servo_t servoConfigurations[2]; // [PITCH, ROLL]
 
// Outputs
output_flash_t outputFlash[2];
/branches/dongfang_FC_rewrite/timer2.c
97,15 → 97,6
/*****************************************************
* Control Servo Position
*****************************************************/
 
/*typedef struct {
uint8_t manualControl;
uint8_t compensationFactor;
uint8_t minValue;
uint8_t maxValue;
uint8_t flags;
} servo_t;*/
 
int16_t calculateStabilizedServoAxis(uint8_t axis) {
int32_t value = attitude[axis] >> STABILIZATION_LOG_DIVIDER; // between -500000 to 500000 extreme limits. Just about
// With full blast on stabilization gain (255) we want to convert a delta of, say, 125000 to 2000.
/branches/dongfang_FC_rewrite/timer2.h
3,9 → 3,6
 
#include <inttypes.h>
 
extern volatile int16_t ServoNickValue;
extern volatile int16_t ServoRollValue;
 
void timer2_init(void);
void calculateServoValues(void);
#endif //_TIMER2_H