|
| | main.PIN_xm = pyb.Pin(pyb.Pin.cpu.A0) |
| | The Nucleo pin connected to RTP xm. More...
|
| |
| | main.PIN_xp = pyb.Pin(pyb.Pin.cpu.A1) |
| | The Nucleo pin connected to RTP xp. More...
|
| |
| | main.PIN_ym = pyb.Pin(pyb.Pin.cpu.A6) |
| | The Nucleo pin connected to RTP ym. More...
|
| |
| | main.PIN_yp = pyb.Pin(pyb.Pin.cpu.A7) |
| | The Nucleo pin connected to RTP yp. More...
|
| |
| | main.RTP = RTP(PIN_xm,PIN_xp,PIN_ym,PIN_yp,(176,100),(88,50),debug=False) |
| | The RTP objct. More...
|
| |
| string | main.mode = 'ctr' |
| | The read mode for testing (ctr obj count) More...
|
| |
| | main.Ts = utime.ticks_us() |
| | Current Time step. More...
|
| |
| int | main.dt = 10**4 |
| | Desired time step in [us]. More...
|
| |
| | main.Tns = utime.ticks_add(Ts,dt) |
| | Next sample time in [us]. More...
|
| |
| int | main.n = 0 |
| | Sample counter. More...
|
| |
| int | main.offset = 0 |
| | Time of the first run for offsetting time values. More...
|
| |
| int | main.end_time = 15 |
| | End time in seconds. More...
|
| |
| list | main.arr_init = [0]*int(end_time/(dt/10**6)) |
| |
| | main.el = array('f',arr_init) |
| |
| | main.samp_idx = array('f',arr_init) |
| |
| | main.x_raw = array('f',arr_init) |
| |
| | main.y_raw = array('f',arr_init) |
| |
| | main.z = array('f',arr_init) |
| |
| | main.pos = RTP.scan() |
| |