Subversion Repositories FlightCtrl

Rev

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

Rev 1406 Rev 1413
Line 433... Line 433...
433
         tmp = PPM_in[EE_Parameter.Kanalbelegung[K_POTI1 + i]] + 110;
433
         tmp = PPM_in[EE_Parameter.Kanalbelegung[K_POTI1 + i]] + 110;
434
         if(tmp > 255) tmp = 255; else if(tmp < 0) tmp = 0;
434
         if(tmp > 255) tmp = 255; else if(tmp < 0) tmp = 0;
435
     if(tmp != Poti[i])
435
     if(tmp != Poti[i])
436
          {
436
          {
437
           Poti[i] += (tmp - Poti[i]) / 8;
437
           Poti[i] += (tmp - Poti[i]) / 8;
438
       if(Poti[i] > tmp) Poti[i]--;  
438
       if(Poti[i] > tmp) Poti[i]--;
439
           else Poti[i]++;
439
           else Poti[i]++;
440
          }
440
          }
441
        }
441
        }
442
}
442
}
Line 443... Line 443...
443
 
443
 
444
//############################################################################
444
//############################################################################
Line 655... Line 655...
655
                           beeptime = 1000;
655
                           beeptime = 1000;
656
                          }
656
                          }
657
                          else
657
                          else
658
                          {
658
                          {
659
                               ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE);
659
                               ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE);
-
 
660
                               LipoDetection(0);
660
                           if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG))  // Höhenregelung aktiviert?
661
                           if((EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG))  // Höhenregelung aktiviert?
661
                            {
662
                            {
662
                             if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset();
663
                             if((MessLuftdruck > 950) || (MessLuftdruck < 750)) SucheLuftruckOffset();
663
                            }
664
                            }
664
                                                   ServoActive = 0;
665
                                                   ServoActive = 0;