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