Go to the documentation of this file.
63 #define MINTHROTTLE 1150 // (*) (**)
67 #define MAXTHROTTLE 1850
72 #define MINCOMMAND 1000
75 #define I2C_SPEED 100000L //100kHz normal mode, this value must be used for a genuine WMP
83 #define LOOP_TIME 2800
173 #define LSM9DS0 //combo + ACC + MAGN
228 #define PID_CONTROLLER 1
231 #define YAW_DIRECTION 1
234 #define ONLYARMWHENFLAT //prevent the copter from arming when the copter is tilted
239 #define ALLOW_ARM_DISARM_VIA_TX_YAW
269 #define CAM_TIME_HIGH 1000 // the duration of HIGH state servo expressed in ms
275 #define FLAPPERON_EP { 1500, 1700 } // Endpooints for flaps on a 2 way switch else set {1020,2000} and program in radio.
276 #define FLAPPERON_INVERT { -1, 1 } // Change direction om flapperons { Wing1, Wing2 }
292 #define YAW_COLL_PRECOMP 10 // (*) proportional factor in 0.1. Higher value -> higher precomp effect. value of 10 equals no/neutral effect
293 #define YAW_COLL_PRECOMP_DEADBAND 120 // (*) deadband for collective pitch input signal around 0-pitch input value
299 #define COLLECTIVE_PITCH THROTTLE
302 #define COLLECTIVE_RANGE { 80, 0, 80 }// {Min%, ZeroPitch offset from 1500, Max%}.
303 #define YAWMOTOR 0 // If a motor is used as YAW Set to 1 else set to 0.
307 #define SERVO_NICK { +10, -10, 0 }
308 #define SERVO_LEFT { +10, +5, +10 }
309 #define SERVO_RIGHT { +10, +5, -10 }
312 #define CONTROL_RANGE { 100, 100 } // { ROLL,PITCH }
400 #define SBUS_MID_OFFSET 988 //SBUS Mid-Point at 1500
502 #define SERIAL0_COM_SPEED 115200
503 #define SERIAL1_COM_SPEED 115200
504 #define SERIAL2_COM_SPEED 115200
505 #define SERIAL3_COM_SPEED 115200
509 #define NEUTRALIZE_DELAY 100000
601 #define FAILSAFE_DELAY 10 // Guard time for failsafe activation after signal lost. 1 step = 0.1sec - 1sec in example
602 #define FAILSAFE_OFF_DELAY 200 // Time for Landing before motors stop in 0.1sec. 1 step = 0.1sec - 20sec in example
603 #define FAILSAFE_THROTTLE (MINTHROTTLE + 200) // (*) Throttle level used for landing - may be relative to MINTHROTTLE - as in this case
605 #define FAILSAFE_DETECT_TRESHOLD 985
674 #define GPS_BAUD 57600 // GPS_BAUD will override SERIALx_COM_SPEED for the selected port
705 #define GPS_LED_INDICATOR
716 #define NAV_CONTROLS_HEADING 1 //(**)
718 #define NAV_TAIL_FIRST 0 //(**)
720 #define NAV_SET_TAKEOFF_HEADING 1 //(**)
726 #define MAG_DECLINATION 4.02f //(**)
729 #define GPS_LEAD_FILTER //(**)
736 #define GPS_WP_RADIUS 100 //(**)
740 #define SAFE_WP_DISTANCE 500 //(**)
743 #define MAX_NAV_ALTITUDE 100 //(**)
746 #define NAV_SPEED_MIN 100 // cm/sec //(**)
748 #define NAV_SPEED_MAX 400 // cm/sec //(**)
750 #define NAV_SLOW_NAV 0 //(**)
752 #define CROSSTRACK_GAIN .4 //(**)
754 #define NAV_BANK_MAX 3000 //(**)
757 #define RTH_ALTITUDE 15 //(**)
759 #define WAIT_FOR_RTH_ALT 1 //(**)
762 #define NAV_TAKEOVER_BARO 1 //(**)
765 #define IGNORE_THROTTLE 1 //(**)
769 #define FENCE_DISTANCE 600
772 #define LAND_SPEED 100
797 #define LCD_SERIAL_PORT 0 // must be 0 on Pro Mini and single serial boards; Set to your choice on any Mega based board
816 #define LCD_MENU_PREV 'p'
817 #define LCD_MENU_NEXT 'n'
818 #define LCD_VALUE_UP 'u'
819 #define LCD_VALUE_DOWN 'd'
821 #define LCD_MENU_SAVE_EXIT 's'
822 #define LCD_MENU_ABORT 'x'
897 #define VBATSCALE 131 // (*) (**) change this value if readed Battery voltage is different than real voltage
898 #define VBATNOMINAL 126 // 12,6V full battery nominal voltage - only used for lcd.telemetry
899 #define VBATLEVEL_WARN1 107 // (*) (**) 10,7V
900 #define VBATLEVEL_WARN2 99 // (*) (**) 9.9V
901 #define VBATLEVEL_CRIT 93 // (*) (**) 9.3V - critical condition: if vbat ever goes below this value, permanent alarm is triggered
902 #define NO_VBAT 16 // Avoid beeping without any battery
903 #define VBAT_OFFSET 0 // offset in 0.1Volts, gets added to voltage value - useful for zener diodes
909 #define VBAT_CELLS_NUM 0 // set this to the number of cells you monitor via analog pins
910 #define VBAT_CELLS_PINS {A0, A1, A2, A3, A4, A5 } // set this to the sequence of analog pins
911 #define VBAT_CELLS_OFFSETS {0, 50, 83, 121, 149, 177 } // in 0.1 volts, gets added to voltage value - useful for zener diodes
912 #define VBAT_CELLS_DIVS { 75, 122, 98, 18, 30, 37 } // divisor for proportional part according to resistors - larger value here gives smaller voltage
926 #define PSENSORNULL 510
939 #define ALT_HOLD_THROTTLE_NEUTRAL_ZONE 50
981 #define BOARD_NAME "MultiWii V-.--"
988 #define NO_FLASH_CHECK
996 #define VBAT_PRESCALER 16 // set this to 8 if vbatscale would exceed 255
1029 #define SERVO_RFR_50HZ
1050 #define MEGA_HW_PWM_SERVOS
1063 #define SERVO_RFR_RATE 50 // In Hz, you can set it from 20 to 400Hz, used only in HW PWM mode for mega and 32u4
1146 #define ESC_CALIB_LOW MINCOMMAND
1147 #define ESC_CALIB_HIGH 2000
1155 #define LCD_TELEMETRY_FREQ 23 // to send telemetry data over serial 23 <=> 60ms <=> 16Hz (only sending interlaced, so 8Hz update rate)
1156 #define LCD_TELEMETRY_AUTO_FREQ 967// to step to next telemetry page 967 <=> 3s
1157 #define PSENSOR_SMOOTH 16 // len of averaging vector for smoothing the PSENSOR readings; should be power of 2; set to 1 to disable
1158 #define VBAT_SMOOTH 16 // len of averaging vector for smoothing the VBAT readings; should be power of 2; set to 1 to disable
1159 #define RSSI_SMOOTH 16 // len of averaging vector for smoothing the RSSI readings; should be power of 2; set to 1 to disable
1197 #define DISABLE_POWER_PIN