Subversion Repositories FlightCtrl

Rev

Rev 2319 | Rev 2322 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2319 Rev 2320
Line 1795... Line 1795...
1795
                                LIMIT_MAX(FilterHCGas, GasMischanteil); // nicht mehr als Gas
1795
                                LIMIT_MAX(FilterHCGas, GasMischanteil); // nicht mehr als Gas
1796
                                GasMischanteil = FilterHCGas;
1796
                                GasMischanteil = FilterHCGas;
1797
                        }
1797
                        }
1798
                        else GasMischanteil = FilterHCGas + (GasMischanteil - HoverGas) / 4; // only in Vario-Mode
1798
                        else GasMischanteil = FilterHCGas + (GasMischanteil - HoverGas) / 4; // only in Vario-Mode
1799
                   }
1799
                   }
-
 
1800
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
1800
          else // ACC-Altitude control
1801
          else // ACC-Altitude control
1801
                   {
1802
                   {
1802
                        // from this point the Heigth Control Algorithm is identical for both versions
1803
                        // from this point the Heigth Control Algorithm is identical for both versions
1803
                        if(BaroExpandActive) // baro range expanding active
1804
                        if(BaroExpandActive) // baro range expanding active
1804
                        {
1805
                        {
Line 1845... Line 1846...
1845
                                LIMIT_MAX(FilterHCGas, GasMischanteil); // nicht mehr als Gas
1846
                                LIMIT_MAX(FilterHCGas, GasMischanteil); // nicht mehr als Gas
1846
                                GasMischanteil = FilterHCGas;
1847
                                GasMischanteil = FilterHCGas;
1847
                        }
1848
                        }
1848
                        else GasMischanteil = FilterHCGas;
1849
                        else GasMischanteil = FilterHCGas;
1849
           } // end of ACC-Altitude control
1850
           } // end of ACC-Altitude control
-
 
1851
#endif
1850
                  }
1852
                  }
1851
                }// EOF height control active
1853
                }// EOF height control active
1852
                else // HC not active
1854
                else // HC not active
1853
                {
1855
                {
1854
                        //update hoover gas stick value when HC is not active
1856
                        //update hoover gas stick value when HC is not active