//default settings
///////////////////////////////////////////////////////////////////////////////////////////////////
static uint8_t GimbalType = 0; // 0 normal / 1 = nanowii auf dem gimbal
static uint8_t servoType = 0; // 0 50Hz / 1 = 300Hz
// nur wenn GimablType = 1
static uint8_t Proll = 100; // P für Roll (100 = 10)
static uint8_t Ppitch = 100; // P für Pitch (100 = 10)
static uint8_t Iroll = 100; // I für Roll (100 = 0.0100)
static uint8_t Ipitch = 100; // I für Pitch (100 = 0.0100)
static uint8_t RServoLPF = 20; // Roll Low pass filter
static uint8_t PServoLPF = 20; // Pitch Low pass filter
// für beide typen
static uint8_t TravelMultiRoll = 130;
static uint8_t TravelMultiPitch = 130;
static uint16_t TravelMinPitch = 1000;
static uint16_t TravelMaxPitch = 2000;
static uint16_t TravelMinRoll = 1000;
static uint16_t TravelMaxRoll = 2000;
static uint16_t TravelMidRoll = 1500;
static uint16_t TravelMidPitch = 1500;
static int8_t TravelDirectionPitch = 1; // -1 zum invertieren
static int8_t TravelDirectionRoll = 1; // -1 zum invertieren
// end default settings
///////////////////////////////////////////////////////////////////////////////////////////////////////////
static int16_t rcData[6] = {1500,1500,1500,1500,1500,1500}; // interval [1000;2000]
static int16_t rcCommand[4] = {0,0,0,1000}; // interval [1000;2000] for THROTTLE and [-500;+500] for ROLL/PITCH/YAW
static int16_t lookupPitchRollRC[6];// lookup table for expo & RC rate PITCH+ROLL
static int16_t lookupThrottleRC[11];// lookup table for expo & mid THROTTLE
volatile uint8_t rcFrameComplete; // for serial rc receiver Spektrum
static int8_t RCrate = 150;
static int8_t yawRate = 150;
--
static uint8_t P8[5] = {2,2,0,Proll,Ppitch};<------!!!!!!!!!!!!!!!!!!
static uint8_t I8[5] = {10,10,0,Iroll,Ipitch};<------!!!!!!!!!!!!!!!!!!
static uint8_t D8[5] = {10,10,0,100,100};<------!!!!!!!!!!!!!!!!!!
static uint8_t RXtype = 0;
static uint8_t satType = 1;
static uint16_t CaccZero[3];