Data processing on MATLAB - GiulioRomualdi/DecaWaveEVB1000Experiments GitHub Wiki
In order to process data in MATLAB this set of scripts
for MATLAB is required.
In the following it is assumed that the scripts have been downloaded and extracted in a directory $SCRIPTS_HOME.
To start processing data
-
Change directory to
$SCRIPTS_HOMEwithin MATLAB and runinit -
Change directory to
$SCRIPTS_HOME/trilaterationand runcompilein order to compile the trilateration algorithms written in C.
How to evaluate the position of the anchors from autoranging data
Run the following command
anchor_position = eval_anch_pos(autoranging)
where:
autoranging: is the struct containing the autoranging data
The anchor_position struct will contain the following fields
joined: (ifautoranging.joinedis present) is a matrix containing the position of the anchors evaluated from the ranges collected during the autoranging procedure;laser: (ifautoranging.laseris present) is a matrix containing the position of the anchors evaluated from the ranges measured manually using a laser distance measurer.
How to evaluate the trilateration from the ranges collected during a trilateration experiment
Run the following command
trilateration = trilateration_all_types(path, anchor_position)
where:
path: is the struct containing the ranges between the tag and all the anchorsanchor_position: is the struct containing the position of the anchors
The trilateration struct will contain the following fields:
joined: (ifanchor_position.joinedis present) is a struct that contains the results of trilateration evaluated using the position of the anchorsanchor_position.joined;laser: (ifanchor_position.laseris present) is a struct that contains the results of trilateration evaluated using the position of the anchorsanchor_position.laser.
Each of the fields above contains the following fields:
dw: is a struct containing the results of the trilateration performed with the DecaWave algorithm;dw_cycle: is a struct containing the results of the trilateration performed with a modified DecaWave algorithm;algebraic: is a struct containing the results of the trilateration performed with the algebraic algorithm.
Each of the fields above contains the following fields:
x: x components of the path;y: y components of the path;z: z components of the path.