Page 346 - 2
P. 346

#if defined (PILOTLAMP)
                PL_INIT;
              #endif
              #if defined(OPENLRSv2MULTI)
                initOpenLRS();
              #endif
              initSensors();
              #if GPS
                GPS_set_pids();
              #endif
              previousTime = micros();
              #if defined(GIMBAL)
               calibratingA = 512;
              #endif
              calibratingG = 512;
              calibratingB = 200;  // 10 seconds init_delay + 200 * 25 ms = 15 seconds before ground pre
            ssure settles
              #if defined(POWERMETER)
                for(uint8_t j=0; j<=PMOTOR_SUM; j++) pMeter[j]=0;
              #endif
              /************************************/
              #if GPS
                #if defined(GPS_SERIAL)
                  GPS_SerialInit();
                #endif
                GPS_conf.max_wp_number = getMaxWPNumber();
              #endif


              #if defined(LCD_ETPP) || defined(LCD_LCD03) || defined(LCD_LCD03S) || defined(OLED_I2C
            _128x64) || defined(OLED_DIGOLE) || defined(LCD_TELEMETRY_STEP)
                initLCD();
              #endif
              #ifdef LCD_TELEMETRY_DEBUG
                telemetry_auto = 1;
              #endif
              #ifdef LCD_CONF_DEBUG
                configurationLoop();
              #endif
              #ifdef LANDING_LIGHTS_DDR
                init_landing_lights();
              #endif
              #ifdef FASTER_ANALOG_READS
                ADCSRA |= _BV(ADPS2) ; ADCSRA &= ~_BV(ADPS1); ADCSRA &= ~_BV(ADPS0); // this s
            peeds up analogRead without loosing too much resolution: http://www.arduino.cc/cgi-bin/yabb2/Y
            aBB.pl?num=1208715493/11


                                                         - 346 -
   341   342   343   344   345   346   347   348   349   350   351