Open schuderer opened 2 years ago
Update: I had to paste the old working config's laser plane config fragment into the new one (having one empty laser plane json fragment did result in the error). Somehow, calibration went through after "seeding" with the old, outdated laser plane settings. They even have been updated now. For reference, the working fragment is:
"laser_planes": [
{
"distance": 61.994716840208476,
"normal": [
0.8589525022472666,
-0.01706558684961087,
0.5117708125993878
],
"deviation": 0.07225449219249558
}
],
Another update: I still got point clouds that looked like they were half-inverted (like the vertical/z axis was shifted). This was solved by changing the turntable steps from 3200 to 6400 (as suggested in the docs). This solved it. I'm not sure whether this could also have been the original issue behind the inability to calibrate in the first place. That's why I'm leaving this issue open for contributors to have a glance to judge whether it's just a config error or there's more behind it. From my perspective, this issue can be closed.
Using a newly flashed image (0.10.2, image_2022-03-23-FabScanPi-lite.zip), calibration fails every time (brief yellow message "calibration failed, please try again", followed by green message "calibration finished").
When using an SD card that has an older version (v.0.5.0), calibration works on the same FabScanPi machine (RasPi 3B+, 1 Laser, same physical calibration pattern).
Edit 1: I watched the camera preview for the complete process, but the laser did not come on during calibration at all. Is this normal (particularly after it complaining about laser planes)? The laser works fine and comes on when I enter the Scan tab.
Edit 2: after seeing #144 mentioning two lasers being the default, I looked into default.config.json and changed
number: 2
intonumber: 1
, but to no avail.I have taken care that the camera image and the laser line are centered as advised in the book + web docs. The calibration pattern is printed in the correct scale (I measured). I'm attaching a few screenshots for good measure (maybe there is something blatantly wrong with my setup that is visible in them).
According to the timestamp of the config files, something seems to have changed in default.config.json on calibration:
But when I try to scan, it says that I need to calibrate. I attached the config file here: default.config.json.txt
End of of /var/log/fabscanpi/fabscanpi.log:
Any help is appreciated. Thank you in advance for your time (and for FabScanPi of course! 💯).
(P.S.: I missed the error message a couple of times -- repeating calibration some 5-6 times, thinking it's successful and just not "sticking", before I saw that there actually was an error -- making errors not disappear automatically would be a neat little UI improvement.)