ME 405
rtp_filter_testing.py File Reference

Namespaces

 rtp_filter_testing
 

Variables

 rtp_filter_testing.PIN_xm = pyb.Pin(pyb.Pin.cpu.A0)
 The Nucleo pin connected to RTP xm. More...
 
 rtp_filter_testing.PIN_xp = pyb.Pin(pyb.Pin.cpu.A1)
 The Nucleo pin connected to RTP xp. More...
 
 rtp_filter_testing.PIN_ym = pyb.Pin(pyb.Pin.cpu.A6)
 The Nucleo pin connected to RTP ym. More...
 
 rtp_filter_testing.PIN_yp = pyb.Pin(pyb.Pin.cpu.A7)
 The Nucleo pin connected to RTP yp. More...
 
 rtp_filter_testing.RTP = RTP(PIN_xm,PIN_xp,PIN_ym,PIN_yp,(176,100),(88,50),filt='fir', debug=False)
 The RTP objct. More...
 
string rtp_filter_testing.mode = 'ctr'
 The read mode for testing (ctr obj count) More...
 
 rtp_filter_testing.Ts = utime.ticks_us()
 Current Time step. More...
 
int rtp_filter_testing.dt = 6000
 Desired time step in [us]. More...
 
 rtp_filter_testing.Tns = utime.ticks_add(Ts,dt)
 Next sample time in [us]. More...
 
int rtp_filter_testing.n = 1
 Sample counter. More...
 
int rtp_filter_testing.offset = 0
 Time of the first run for offsetting time values. More...
 
int rtp_filter_testing.end_time = 120
 End time in seconds. More...
 
 rtp_filter_testing.uart = UART(2)
 UART object for handling simple serial communication. More...
 
int rtp_filter_testing.el = 0
 Elapsed time in [sec]. More...
 
 rtp_filter_testing.coeffs
 
 rtp_filter_testing.ncoeffs = len(coeffs)
 
int rtp_filter_testing.navg = 10
 
 rtp_filter_testing.xfilt_buf = array('i',[0]*int(ncoeffs+3))
 
 rtp_filter_testing.yfilt_buf = array('i',[0]*int(ncoeffs+3))
 
 rtp_filter_testing.pos = RTP.scan_demo(mode='counts',avg_type=10)