ME 405
rtp_filter_testing Namespace Reference

Variables

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

Variable Documentation

◆ coeffs

rtp_filter_testing.coeffs
Initial value:
1 = array('i', (-124,-38,-12,46,143,285,474,708,982,1285,1602,1917,2210,2462,2656
2  ,2779,2821,2779,2656,2462,2210,1917,1602,1285,982,708,474,285,143,46
3  ,-12,-38,-124))

◆ dt

int rtp_filter_testing.dt = 6000

Desired time step in [us].

◆ el

tuple rtp_filter_testing.el = 0

Elapsed time in [sec].

◆ end_time

int rtp_filter_testing.end_time = 120

End time in seconds.

◆ mode

string rtp_filter_testing.mode = 'ctr'

The read mode for testing (ctr obj count)

◆ n

int rtp_filter_testing.n = 1

Sample counter.

◆ navg

int rtp_filter_testing.navg = 10

◆ ncoeffs

rtp_filter_testing.ncoeffs = len(coeffs)

◆ offset

rtp_filter_testing.offset = 0

Time of the first run for offsetting time values.

◆ PIN_xm

rtp_filter_testing.PIN_xm = pyb.Pin(pyb.Pin.cpu.A0)

The Nucleo pin connected to RTP xm.

◆ PIN_xp

rtp_filter_testing.PIN_xp = pyb.Pin(pyb.Pin.cpu.A1)

The Nucleo pin connected to RTP xp.

◆ PIN_ym

rtp_filter_testing.PIN_ym = pyb.Pin(pyb.Pin.cpu.A6)

The Nucleo pin connected to RTP ym.

◆ PIN_yp

rtp_filter_testing.PIN_yp = pyb.Pin(pyb.Pin.cpu.A7)

The Nucleo pin connected to RTP yp.

◆ pos

rtp_filter_testing.pos = RTP.scan_demo(mode='counts',avg_type=10)

◆ RTP

rtp_filter_testing.RTP = RTP(PIN_xm,PIN_xp,PIN_ym,PIN_yp,(176,100),(88,50),filt='fir', debug=False)

The RTP objct.

◆ Tns

rtp_filter_testing.Tns = utime.ticks_add(Ts,dt)

Next sample time in [us].

◆ Ts

rtp_filter_testing.Ts = utime.ticks_us()

Current Time step.

◆ uart

rtp_filter_testing.uart = UART(2)

UART object for handling simple serial communication.

◆ xfilt_buf

rtp_filter_testing.xfilt_buf = array('i',[0]*int(ncoeffs+3))

◆ yfilt_buf

rtp_filter_testing.yfilt_buf = array('i',[0]*int(ncoeffs+3))