Ignore:
Timestamp:
04/03/10 18:42:09 (2 years ago)
Author:
dart
Message:

I18n:
o Last translations update

LoPlug?:
o Fix last deliveries for logger (need more work later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loplug/plugins/lockon/llf.py

    r1939 r1944  
    262262  def selection( self, srcPlugId, datas): 
    263263    if self.featureEnable: 
    264       self.logger.debug( "[LLF] feature disable" ) 
     264      self.debug( "[LLF] feature disable" ) 
    265265      self.featureEnable = False 
    266266       
     
    273273             
    274274    else: 
    275       self.logger.debug( "[LLF] feature enable" ) 
     275      self.debug( "[LLF] feature enable" ) 
    276276      self.featureEnable = True 
    277277       
     
    326326  # @param cmdData                   associated data 
    327327  def _execute_command( self, cmdId, cmdData): 
    328     self.logger.debug( "[LLF] Execute command %s with data %s" % ( cmdId, cmdData) ) 
     328    self.debug( "[LLF] Execute command %s with data %s" % ( cmdId, cmdData) ) 
    329329#---------------------------------------------------------------- 
    330330  # To shutdown the instance 
     
    402402    # Get the next most constraining ground elevation and its arrival time 
    403403    nextMapElevation, nextMapTime = self.__getNextMostConstraningGroundElevation__() 
    404     self.logger.debug( nextMapElevation, nextMapTime ) 
     404    self.debug( nextMapElevation, nextMapTime ) 
    405405    if nextMapTime == 0: 
    406406      # The current position is the most constraining one, there is is no montain to climb. 
     
    411411      deltaHeightInPerCent = self.deltaHeight / self.targetedAltitudeASFC 
    412412       
    413       self.logger.debug( "planeHeight: %s, deltaHeight: %s, deltaHeightInPerCent: %s" % ( self.altitudeASFC, self.deltaHeight, deltaHeightInPerCent) ) 
     413      self.debug( "planeHeight: %s, deltaHeight: %s, deltaHeightInPerCent: %s" % ( self.altitudeASFC, self.deltaHeight, deltaHeightInPerCent) ) 
    414414 
    415415      found = False 
     
    432432      # Compute corresponding targetedAlitude 
    433433      targetedAltitude = self.altitudeASFC - self.altitudeAMSL + nextMapElevation + self.targetedAltitudeASFC 
    434       self.logger.debug( "ASFC: ", self.altitudeASFC ) 
    435       self.logger.debug( "AMSL: ", self.altitudeAMSL ) 
    436       self.logger.debug( "tgt : ", targetedAltitude ) 
     434      self.debug( "ASFC: ", self.altitudeASFC ) 
     435      self.debug( "AMSL: ", self.altitudeAMSL ) 
     436      self.debug( "tgt : ", targetedAltitude ) 
    437437       
    438438      # Compute the delta (in per cent) between the target and plane altitudes. 
    439439      self.deltaHeight = ( targetedAltitude - self.altitudeASFC) 
    440       self.logger.debug( "delta: ", self.deltaHeight ) 
     440      self.debug( "delta: ", self.deltaHeight ) 
    441441      deltaHeightInPerCent = self.deltaHeight / self.targetedAltitudeASFC 
    442442 
     
    450450 
    451451 
    452     self.logger.debug( "verticalVelocity: %s, requestedVerticalVelocity: %s" % ( self.verticalSpeed, requestedVerticalVelocity) ) 
     452    self.debug( "verticalVelocity: %s, requestedVerticalVelocity: %s" % ( self.verticalSpeed, requestedVerticalVelocity) ) 
    453453 
    454454    # Compute error, integratedError and derivedError 
     
    457457    derivedError           = error - self.AltiPrevError 
    458458 
    459     self.logger.debug( "error: %s, integratedError: %s" % ( error, self.AltIntragedError) ) 
     459    self.debug( "error: %s, integratedError: %s" % ( error, self.AltIntragedError) ) 
    460460     
    461461    # Compute PID components, and apply threshold on command 
     
    543543      mapElevation, latitude, logitude = self.srtm.getElevationByMin( latitude*60, longitude*60) 
    544544      self.nextMapElevations.append( mapElevation) 
    545       self.logger.debug( "idx: %3d  -> %s" % ( index+1, mapElevation) ) 
     545      self.debug( "idx: %3d  -> %s" % ( index+1, mapElevation) ) 
    546546 
    547547    # Retrieve the elevation with the most constraint 
Note: See TracChangeset for help on using the changeset viewer.