Exemple #1
0
 def addTemperatureLineIfDifferent(self, temperature):
     'Add a line of temperature if different.'
     if temperature == None or temperature == self.oldTemperatureInput:
         return
     self.distanceFeedRate.addLine(
         'M104 S' + euclidean.getRoundedToThreePlaces(temperature))
     self.oldTemperatureInput = temperature
Exemple #2
0
 def addFlowRateLineIfNecessary(self):
     "Add flow rate line."
     flowRateString = euclidean.getRoundedToThreePlaces(
         self.flowRepository.flowRate.value)
     if flowRateString != self.oldFlowRateString:
         self.distanceFeedRate.addLine('M108 S' + flowRateString)
     self.oldFlowRateString = flowRateString
Exemple #3
0
	def addTemperatureLineIfDifferent(self, temperature):
		'Add a line of temperature if different.'
		if temperature == None:
			return
		temperatureOutputString = euclidean.getRoundedToThreePlaces(temperature)
		if temperatureOutputString == self.oldTemperatureOutputString:
			return
		if temperatureOutputString != None:
			self.distanceFeedRate.addLine('M104 S' + temperatureOutputString) # Set temperature.
		self.oldTemperatureOutputString = temperatureOutputString
Exemple #4
0
 def addParameter(self, firstWord, parameter):
     "Add the parameter."
     self.addLine(firstWord + ' S' +
                  euclidean.getRoundedToThreePlaces(parameter))
Exemple #5
0
	def addTemperature(self, temperature):
		'Add a line of temperature.'
		self.distanceFeedRate.addLine('M104 S' + euclidean.getRoundedToThreePlaces(temperature))
Exemple #6
0
	def addTemperature( self, temperature ):
		"Add a line of temperature."
		self.distanceFeedRate.addLine('M104 S' + euclidean.getRoundedToThreePlaces( temperature ) ) 
Exemple #7
0
	def addFlowRateLineIfNecessary( self ):
		"Add flow rate line."
		flowRateString = euclidean.getRoundedToThreePlaces( self.flowRepository.flowRate.value )
		if flowRateString != self.oldFlowRateString:
			self.distanceFeedRate.addLine( 'M108 S' + flowRateString )
		self.oldFlowRateString = flowRateString
Exemple #8
0
	def addParameter(self, firstWord, parameter):
		'Add the parameter.'
		self.addLine(firstWord + ' S' + euclidean.getRoundedToThreePlaces(parameter))
Exemple #9
0
 def addTemperatureLineIfDifferent(self, temperature):
     "Add a line of temperature if different."
     if temperature == None or temperature == self.oldTemperatureInput:
         return
     self.distanceFeedRate.addLine("M104 S" + euclidean.getRoundedToThreePlaces(temperature))
     self.oldTemperatureInput = temperature