Changeset 1944 for trunk/loplug/plugins/lockon/llf.py
- Timestamp:
- 04/03/10 18:42:09 (2 years ago)
- File:
-
- 1 edited
-
trunk/loplug/plugins/lockon/llf.py (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/loplug/plugins/lockon/llf.py
r1939 r1944 262 262 def selection( self, srcPlugId, datas): 263 263 if self.featureEnable: 264 self. logger.debug( "[LLF] feature disable" )264 self.debug( "[LLF] feature disable" ) 265 265 self.featureEnable = False 266 266 … … 273 273 274 274 else: 275 self. logger.debug( "[LLF] feature enable" )275 self.debug( "[LLF] feature enable" ) 276 276 self.featureEnable = True 277 277 … … 326 326 # @param cmdData associated data 327 327 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) ) 329 329 #---------------------------------------------------------------- 330 330 # To shutdown the instance … … 402 402 # Get the next most constraining ground elevation and its arrival time 403 403 nextMapElevation, nextMapTime = self.__getNextMostConstraningGroundElevation__() 404 self. logger.debug( nextMapElevation, nextMapTime )404 self.debug( nextMapElevation, nextMapTime ) 405 405 if nextMapTime == 0: 406 406 # The current position is the most constraining one, there is is no montain to climb. … … 411 411 deltaHeightInPerCent = self.deltaHeight / self.targetedAltitudeASFC 412 412 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) ) 414 414 415 415 found = False … … 432 432 # Compute corresponding targetedAlitude 433 433 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 ) 437 437 438 438 # Compute the delta (in per cent) between the target and plane altitudes. 439 439 self.deltaHeight = ( targetedAltitude - self.altitudeASFC) 440 self. logger.debug( "delta: ", self.deltaHeight )440 self.debug( "delta: ", self.deltaHeight ) 441 441 deltaHeightInPerCent = self.deltaHeight / self.targetedAltitudeASFC 442 442 … … 450 450 451 451 452 self. logger.debug( "verticalVelocity: %s, requestedVerticalVelocity: %s" % ( self.verticalSpeed, requestedVerticalVelocity) )452 self.debug( "verticalVelocity: %s, requestedVerticalVelocity: %s" % ( self.verticalSpeed, requestedVerticalVelocity) ) 453 453 454 454 # Compute error, integratedError and derivedError … … 457 457 derivedError = error - self.AltiPrevError 458 458 459 self. logger.debug( "error: %s, integratedError: %s" % ( error, self.AltIntragedError) )459 self.debug( "error: %s, integratedError: %s" % ( error, self.AltIntragedError) ) 460 460 461 461 # Compute PID components, and apply threshold on command … … 543 543 mapElevation, latitude, logitude = self.srtm.getElevationByMin( latitude*60, longitude*60) 544 544 self.nextMapElevations.append( mapElevation) 545 self. logger.debug( "idx: %3d -> %s" % ( index+1, mapElevation) )545 self.debug( "idx: %3d -> %s" % ( index+1, mapElevation) ) 546 546 547 547 # Retrieve the elevation with the most constraint
Note: See TracChangeset
for help on using the changeset viewer.
