|
每次更新都有惊喜!!!
没想到直升机模式已经开发到这种程度了,多种斜盘模式、多种舵机支持,基本上能调的参数都能调!下一步估计要向APM方向发展了。
开源的东西生命力就是如此强大!全世界拥有航模精神和热情的同好共同努力的结果!!
下一次试试V型四旋翼,不知道性能能够提高多少。- /*********************** Cam Stabilisation ***********************/
- /* The following lines apply only for a pitch/roll tilt stabilization system
- Uncomment the first line to activate it */
- //#define SERVO_MIX_TILT // Simple CameraGimbal By Bledy http://youtu.be/zKGr6iR54vM
- //#define SERVO_TILT
- #define TILT_PITCH_MIN 1020 //servo travel min, don't set it below 1020
- #define TILT_PITCH_MAX 2000 //servo travel max, max value=2000
- #define TILT_PITCH_MIDDLE 1500 //servo neutral value
- #define TILT_PITCH_PROP 10 //servo proportional (tied to angle) ; can be negative to invert movement
- #define TILT_ROLL_MIN 1020
- #define TILT_ROLL_MAX 2000
- #define TILT_ROLL_MIDDLE 1500
- #define TILT_ROLL_PROP 10
- /* experimental
- camera trigger function : activated via Rc Options in the GUI, servo output=A2 on promini */
- //#define CAMTRIG
- #define CAM_SERVO_HIGH 2000 // the position of HIGH state servo
- #define CAM_SERVO_LOW 1020 // the position of LOW state servo
- #define CAM_TIME_HIGH 1000 // the duration of HIGH state servo expressed in ms
- #define CAM_TIME_LOW 1000 // the duration of LOW state servo expressed in ms
- /*********************** Flying Wing ***********************/
- /* you can change change servo orientation and servo min/max values here */
- /* valid for all flight modes, even passThrough mode */
- /* need to setup servo directions here; no need to swap servos amongst channels at rx */
- #define PITCH_DIRECTION_L -1 // left servo - pitch orientation
- #define PITCH_DIRECTION_R 1 // right servo - pitch orientation (opposite sign to PITCH_DIRECTION_L, if servos are mounted in mirrored orientation)
- #define ROLL_DIRECTION_L -1 // left servo - roll orientation
- #define ROLL_DIRECTION_R -1 // right servo - roll orientation (same sign as ROLL_DIRECTION_L, if servos are mounted in mirrored orientation)
- #define WING_LEFT_MID 1500 // left servo center pos. - use this for initial trim; later trim midpoint via LCD
- #define WING_RIGHT_MID 1500 // right servo center pos. - use this for initial trim; later trim midpoint via LCD
- #define WING_LEFT_MIN 1220 // limit servo travel range must be inside [1020;2000]
- #define WING_LEFT_MAX 1800 // limit servo travel range must be inside [1020;2000]
- #define WING_RIGHT_MIN 1220 // limit servo travel range must be inside [1020;2000]
- #define WING_RIGHT_MAX 1800 // limit servo travel range must be inside [1020;2000]
- //******************************* !!!! Airplane Settings !!!! *********************************//
- // Howto setup =>>> http://fotoflygarn.blogspot.com/2012/03/how-to-setup-multiwii-airplane-same.html
- #define SERVO_RATES {100, 100, 100, 100, 100, 100, 100, 100} // Rates in 0-100%
- #define SERVO_DIRECTION { -1, 1, 1, -1, 1, 1, 1, 1 } // Invert servos by setting -1
- //#define FLAP_CHANNEL AUX4 // Define the Channel to controll Flaps with.If used.
- #define FLAP_EP { 1500, 1650 } // Endpooints for flaps on a 2 way switch else set {1020,2000} and program in radio.
- #define FLAP_INVERT { 1, -1 } // Change direction om flaps { Wing1, Wing2 }
- //*************************** !!!! Common for Heli & Airplane !!!! ****************************//
- //#define D12_POWER // Use D12 on PROMINI to power sensors. Will disable servo[4] on D12
-
- #define SERVO_OFFSET { 0, 0, 0, 0, 0, 0, 0, 0 } // Adjust Servo MID Offset & Swash angles
- // Selectable channels:= ROLL,PITCH,THROTTLE,YAW,AUX1,AUX2,AUX3,AUX4
- //****************************** !!!! Hellicopter Settings !!!! *******************************//
- // Channel to control CollectivePitch
- #define COLLECTIVE_PITCH THROTTLE
- // Set Maximum available movement for the servos. Depending on modell.
- #define SERVO_ENDPOINT_HIGH {2000,2000,2000,2000,2000,2000,2000,2000};
- #define SERVO_ENDPOINT_LOW {1020,1020,1020,1020,1020,1020,1020,1020};
- // Limit the range of Collective Pitch. 100% is Full Range each way and position for Zero Pitch
- #define COLLECTIVE_RANGE { 80, 1500, 80 }// {Min%, ZeroPitch, Max%}.
- #define YAW_CENTER 1500 // Use servo[5] SERVO_ENDPOINT_HIGH/LOW for the endpoits.
- #define YAWMOTOR 0 // If a motor is useed as YAW Set to 1 else set to 0.
- // Servo mixing for heli 120 Use 1/10 fractions (ex.5 = 5/10 = 1/2)
- // {Coll,Nick,Roll}
- #define SERVO_NICK { +10, -10, -0 }
- #define SERVO_LEFT { +10, +5, +10 }
- #define SERVO_RIGHT { +10, +5, -10 }
- // Servo mixing for heli 90
- // {Coll,Nick,Roll}
- #define SERVO_DIRECTIONS { +1, -1, -1 } // -1 will invert servo
-
- // Limit Maximum controll for Roll & Nick in 0-100%
- #define CONTROLL_RANGE { 100, 100 } // { ROLL,PITCH }
复制代码 |
欢迎继续阅读楼主其他信息
|