JacSchn / 5G-Beamforming-from-Visual-and-Lidar-Rendering

Regent Scholarship Research with UWW where we are using machine learning in an autonomous driving lab to collect visual and lidar-based models to have optimal guidance of 60GHz Wireless Network.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Change USB Cam Timestamp to MS #28

Closed flynn248 closed 2 years ago

flynn248 commented 2 years ago

Change the USB camera timestamp to have ms accuracy with no decimal places. This will make it in line with the other timestamps from the LiDAR and the routers.

flynn248 commented 2 years ago

Modified the sony_cam.py file from

timestamp = time.time()

to

timestamp = int(time.time() * 1000)

The *1000 changes it to ms accuracy. int() ensures there isn't any digits past a decimal.

Possible issue with using int() is that it always rounds down. However, a possible 1ms difference shouldn't cause any issues overall.