Scanner

class pylayers.measures.parker.smparker.Scanner(port='not connected', anchors={}, reset=True, vel=15, acc=15, **kwargs)[source]

Bases: pylayers.util.project.PyLayers

This class handles the FACS (Four Axes Channel Scanner)

Methods Summary

check_pa()

home([cmd, init, vel])

allows a return home for 3 axes

meas(A[, _fileh5, gcal, ical, vel, Nmeas, …])

measure MIMO channel over a set of points from AntArray and store in h5

mv([pt, at, frame, vel])

move to target point

origin([cmd, p0, ang0])

reset()

reset and power all axes

upd_pos(pH)

update position

Methods Documentation

check_pa()[source]
home(cmd='set', init=True, vel=10)[source]

allows a return home for 3 axes

cmd : set init : boolean (False) vel : velocity (10) frame : landmark {‘H’|’A’|’G’}

>>> from pylayers.measures.parker import smparker 
>>> S = smparker.Scanner()
>>> S.home('go')
meas(A, _fileh5='test.h5', gcal=1, ical=1, vel=15, Nmeas=1, pAnt=array([1.6, 5.2, 1.6]), vAnt=array([1., 0., 0.]), comment='test', author='mamadou')[source]

measure MIMO channel over a set of points from AntArray and store in h5

A : Aarray _fileh5 : string

name of the h5 file containing calibration data

gcal : calibration group ical : calibration index vel : int

scanner moving velocity

Nmeasint

Number of measurement

pAntnp.array(,3)

Coordinates of non scanner antenna phase center

vAntnp.array(,3)

Coordinates of non scanner antenna unitary vector

mv(pt=array([0., 0., 0.]), at=0, frame='A', vel=20)[source]

move to target point

pttarget position (pt=np.array([0,0,0]))

for axe z, if value is positif (+), it moves up and else moves down

at : target angle frame : {‘G’|’H’|’A’}

determine in which frame is expressed pt (default A)

velint

velocity

origin(cmd='set', p0=array([0, 0, 0]), ang0=0)[source]
reset()[source]

reset and power all axes

>>> from pylayers.measures.parker import smparker
>>> S = smparker.Scanner()
>>> S.reset()
upd_pos(pH)[source]

update position

pH : current position in H frame

self.pH : corrdinate in Home frame self.pA : coordinate in Array frame self.pG : coordinate in Global Frame