/P2G-Dashboard

Qt Widgets Dashboard to visualize some radar information of the 24GHz Infineon Position2Go Radar.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

P2G-Dashboard

Qt Widgets Dashboard to visualize some radar information of the 24GHz Infineon Position2Go Radar.

This includes:

  • Raw data: I and Q component of both antennas
  • Range data: FFT spectrum of both antennas
  • Polar plot: Visualizes the targets with range and angle

dashboard

Used 3rdparty libraries

Dependencies

  • CMake 3.5
  • Qt 5.15.1
    • Qt5Widgets
    • Qt5SerialPort
    • Qt5Charts

Installation of libraries on Raspberry Pi

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install cmake qt5-default libqt5serialport5 libqt5serialport5 libqt5serialport5-dev libqt5charts5 libqt5charts5-dev

Build instructions

Clone the repository:

git clone https://github.com/norbus161/P2G-Dashboard.git

Navigate to the directory and create build directory:

cd P2G-Dashboard && mkdir build

Compile the release version for the application:

cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
make

Serial port permissions (Unix)

Linux: Set up the permissions for accessing the serial port:

cd .. && sudo cp ./driver/udev/90-p2g-linux.rules /etc/udev/rules.d
sudo udevadm control --reload
sudo reboot -h now

Configuration & execution

Config.json lists some parameters, which can be adjusted. It has to placed in the same director as the executable itself. The DspSettings will only have an impact to the radar polar plot:

{
    "StatusbarEnabled": false,
    "ToolbarEnabled": false,	
	
	"DspSettings":{
		"RangeMovingAverageFilterLength": 5,
	        "MinRange": 20,
		"MaxRange": 1000,
		"MinSpeed": 0,
		"MaxSpeed": 4,
		"SpeedThreshold": 0,
		"RangeThreshold": 100,
		"Tracking": false,
		"NumberOfTracks": 5,
		"MedianFilterDepth": 5,
		"MTIFilterSelection": false,
		"MTIFilterWeight": 100
	}
}

Execute the application:

./P2G-Dashboard

Todos

  • Rangeplot: show maxima labels only for the antenna (1 OR 2) with global maxima
  • Put Range calculation into signal processor class
  • Radarthread: automatic reconnect
  • Save option for dynamic dsp configuration
  • Refactor code