def display_sensors(self):
     M3Calibrate.display_sensors(self)
     raw = self.comp_ec.status.adc_ext_temp
     c = self.ext_temp.raw_2_C(self.comp_rt.config['calib']['ext_temp'],
                               raw)
     print 'Ext Temp: (F) : ' + '%3.2f' % m3u.C2F(
         c) + ' (C): ' + '%d' % c + ' (ADC) ' + '%d' % raw
     raw = self.comp_ec.status.adc_amp_temp
     c = self.amp_temp.raw_2_C(self.comp_rt.config['calib']['amp_temp'],
                               raw)
     print 'Amp Temp:   (F) : ' + '%3.2f' % m3u.C2F(
         c) + ' (C): ' + '%3.2f' % c + ' (ADC) ' + '%d' % raw
     raw_a = self.comp_ec.status.adc_current_a
     raw_b = self.comp_ec.status.adc_current_b
     c = self.current.raw_2_mA(self.comp_rt.config['calib']['current'],
                               raw_a, raw_b)
     print 'Current:   (mA) : ' + '%3.2f' % c + ' (ADC_A): ' + '%d' % raw_a + ' (ADC_B) ' + '%d' % raw_b
     q_on = self.comp_ec.status.qei_on
     q_p = self.comp_ec.status.qei_period
     q_r = self.comp_ec.status.qei_rollover
     c = self.theta.raw_2_deg(self.comp_rt.config['calib']['theta'], q_on,
                              q_p, q_r)
     print 'Theta:    (Deg) : ' + '%3.3f' % c + ' Qei On ' + '%d' % q_on + ' Qei Period ' + '%d' % q_p + ' Qei Rollover ' + '%d' % q_r
     raw = self.comp_ec.status.adc_torque
     c = self.torque.raw_2_mNm(self.comp_rt.config['calib']['torque'], raw)
     print 'Torque:   (mNm) : ' + '%3.2f' % c + ' (inLb): ' + '%3.2f' % m3u.mNm2inLb(
         c) + ' (ADC) ' + '%d' % raw
     if self.comp_l is not None:
         print 'Load cell (mNm)', self.comp_l.get_torque_mNm()
	def display_sensors(self):
		M3Calibrate.display_sensors(self)
		raw=self.comp_ec.status.adc_ext_temp
		c=self.ext_temp.raw_2_C(self.comp_rt.config['calib']['ext_temp'],raw)
		print 'Ext Temp: (F) : '+'%3.2f'%m3u.C2F(c)+' (C): '+'%d'%c+' (ADC) '+'%d'%raw
		raw=self.comp_ec.status.adc_amp_temp
		c=self.amp_temp.raw_2_C(self.comp_rt.config['calib']['amp_temp'],raw)
		print 'Amp Temp:   (F) : '+'%3.2f'%m3u.C2F(c)+' (C): '+'%3.2f'%c+' (ADC) '+'%d'%raw
		raw_a=self.comp_ec.status.adc_current_a
		raw_b=self.comp_ec.status.adc_current_b
		c=self.current.raw_2_mA(self.comp_rt.config['calib']['current'],raw_a,raw_b)
		print 'Current:   (mA) : '+'%3.2f'%c+' (ADC_A): '+'%d'%raw_a+' (ADC_B) '+'%d'%raw_b
		q_on=self.comp_ec.status.qei_on
		q_p=self.comp_ec.status.qei_period
		q_r=self.comp_ec.status.qei_rollover
		c=self.theta.raw_2_deg(self.comp_rt.config['calib']['theta'],q_on,q_p,q_r)
		print 'Theta:    (Deg) : '+'%3.3f'%c+' Qei On '+'%d'%q_on+' Qei Period '+'%d'%q_p+' Qei Rollover '+'%d'%q_r
		raw=self.comp_ec.status.adc_torque
		c=self.torque.raw_2_mNm(self.comp_rt.config['calib']['torque'],raw)
		print 'Torque:   (mNm) : '+'%3.2f'%c+' (inLb): '+'%3.2f'%m3u.mNm2inLb(c)+' (ADC) '+'%d'%raw
		if self.comp_l is not None:
			print 'Load cell (mNm)',self.comp_l.get_torque_mNm()
Beispiel #3
0
 def display_sensors(self):
     M3Calibrate.display_sensors(self)
     raw = self.comp_ec.status.adc_torque
     c = self.torque.raw_2_mNm(self.comp_rt.config['calib']['torque'], raw)
     print 'Torque:   (mNm) : ' + '%3.2f' % c + ' (inLb): ' + '%3.2f' % m3u.mNm2inLb(
         c) + ' (ADC) ' + '%d' % raw
	def display_sensors(self):
		M3Calibrate.display_sensors(self)
		raw=self.comp_ec.status.adc_torque
		c=self.torque.raw_2_mNm(self.comp_rt.config['calib']['torque'],raw)
		print 'Torque:   (mNm) : '+'%3.2f'%c+' (inLb): '+'%3.2f'%m3u.mNm2inLb(c)+' (ADC) '+'%d'%raw