bigheadG / mmWave

mmWave SDK examples based on Batman Kit mmWave Sensor module
http://www.joybien.com
123 stars 30 forks source link

bad results of SRR module #6

Closed kaishijeng closed 4 years ago

kaishijeng commented 4 years ago

@bigheadG

I am able to bring up SRR module with Jetson Nano. However, (x,y) plot shows range detection is random and has no correlation with real objects. Since I am not able to install pyqt4/5, I use matplotlib to see (x,y) plot. Can you check any issue with the code in the attachment. Also I see reset LED is ON. Is this normal?

test1.zip

bigheadG commented 4 years ago

Please try it

install pyqt5: $sudo apt-get install python3-pyqt5 install pyqtgraph: $sudo pip3 install pyqtgraph

And matplotlib frame animation update is very slow. your program i will test it Tomorrow.

kaishijeng commented 4 years ago

I have tried to install pyqt5 and pyqtgraph, but it fails. Will try it later. Another question I have is why spots0 is plotting v1[1]-x and v1[2]-y, but not v1[1] and v1[4]-distance or v1[2] and v1[4]. The main purpose of spots0 is to plot distance of detected object to radar, not x and y of radar plane

spots0 = [{'pos': [v1[i][1],v1[i][2]], 'data': 1, 'brush':pg.intColor(i, v1len), 'symbol': 'o', 'size': 10 } for i in range(v1len)]

bigheadG commented 4 years ago

i have test test1.py it only show few point on the screen. may be you can remove pyqt5 and install again. $sudo apt-get remove python3-pyqt5 $sudo apt-get install python3-pyqt5 Please try it.

kaishijeng commented 4 years ago

I am able to install pyqt5 and pyqtgraph and run your code properly. Still trying to figure out accuracy and sensitivity of SRR module. Can you answer the following question:

Another question I have is why spots0 is plotting v1[1]-x and v1[2]-y, but not v1[1] and v1[4]-distance or v1[2] and v1[4]. The main purpose of spots0 is to plot distance of detected object to radar, not x and y of radar plane

spots0 = [{'pos': [v1[i][1],v1[i][2]], 'data': 1, 'brush':pg.intColor(i, v1len), 'symbol': 'o', 'size': 10 } for i in range(v1len)]

bigheadG commented 4 years ago

you can put a object such like as kettle front of sensor and measure the distance(range) range_v1 = sqrt(x x + y y)

kaishijeng commented 4 years ago

Is the range_v1 the same as v1[i][4]?

bigheadG commented 4 years ago

V1 : (tlvNDOCnt,float(x),float(y),float(doppler_v1),float(range_v1),float(peakValue)) V1[i][4] is the same as sqrt( v1[i][1] v1[i][1] + v1[i][2]v1[i][2])