Skip to content

Add localization simulation tools#12

Merged
osherlock1 merged 15 commits into
masterfrom
refactor-localization
Apr 5, 2026
Merged

Add localization simulation tools#12
osherlock1 merged 15 commits into
masterfrom
refactor-localization

Conversation

@osherlock1
Copy link
Copy Markdown
Owner

@osherlock1 osherlock1 commented Apr 5, 2026

Summary

This PR adds simulation tools for localizaitons including a monte carlo simulation calculator and refactors the localization experiment data unpacking

What changed

scripts/experiment_scripts/process_experiment.py
Adds scripts to automate the process of unpacking the raw data collected by the collect_data.py scripts.

scripts/localization/multilateration.py
This script is the overhaul of the legacy trilateration.py script. Is configured to work with the csv structure from the process_experiemnt.py script. Additionally uses the new plotting methods.

scripts/simulation/heatmap.py
Uses the monte_carlo calculation script to generate a heatmap of the RMSE of all possible TX locations.

scripts/simulation/monte_carlo.py
Script for performing monte carlo simluation on TdoA multilationeration.

src/ofdm/modulation/qam.py
Moves binary_ref_to_iq() to the modulation.qam module.

src/ofdm/processing/pipeline.py
Adds a new module in the ofdm package to handle generic data processing. This module will hold a lot of the functionality which used to be in individual scripts.

src/ofdm/viz/sim_plotter.py
Add a universal function for doing localization plotitng.

ofdm package utility for easily calculating the delays for localization
refactor procssing functionality that lives in scripts like unpack_rx.py into the ofdm package
Add a script that runs through file structure generated by the collect_raw_data.py script.  Saves the unpacked delay and perforamnce metric data in csv files in their respective directories.
add a script to read through the csvs that contain the delay data unpacked from the process_experiemnt.py script.  This script does the localization calculation and plots the results
This function is used to process all of the runs (.dat) files from the raw data collection scripts.  Saves them in .csvs in the same dir.
Limits the calculation and plotting of monte carlo simulatiosn to a x and y bounds to help with performance
@osherlock1 osherlock1 changed the title Add localization simulation tools. Add localization simulation tools Apr 5, 2026
@osherlock1 osherlock1 merged commit 838239d into master Apr 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant