3dtof / voxelsdk

VoxelSDK - an SDK supporting TI's 3D Time of Flight cameras
BSD 3-Clause "New" or "Revised" License
108 stars 71 forks source link

Phase issue when I use VoxelCLI upon Voxel-D. #25

Closed Yorkland closed 9 years ago

Yorkland commented 9 years ago

I found a problem, and the steps like,

  1. Place ToF 20cm in front of a whilte wall,
  2. As I knew, the default modulation frequency is 48MHz, we set "phase_corr1 = 0" in conf, and reset wisepixel bin file to all zero.
  3. Use VoxelCli->"save raw", and decode phase data, the average phase around the center (160,120) is about 1,700.
  4. VoxelCli->"set mod_freq1 = 24", and "save raw" again, the average phase in the center is almost same to we got (1,700) in default 48Mhz.

I think it doesn't work to change modulation frequence by command. And hardware team suggests me to use 24Mhz upon Voxel-D for some reason.

How to change the default frequency to 24Mhz? I see some relative code in "ToFTinTinCamera.cpp". And I need more solid info to indicate me modify it.

gadiyar commented 9 years ago

Could you please double check the default modulation frequency?

As of commit 666d83f5332915863c8d2ba6e5e3ec0dc71b7a40, the default for VoxelD has already been updated to 24 MHz.

in VoxelCLI, you can run 'get mod_freq1' to check the default frequency at startup.

Yorkland commented 9 years ago

I have updated my code. Thanks a lot.