-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting precision to mm #36
Comments
Berbaba, The two formatting commands do not require a parameter, so the
Both formatting commands return only an echo of the command. They do not return a pass/fail bit or other useful information. Therefor, the library only examines the reply for a correct checksum byte.
Please bear in mind that what you call "precision" is only how the data is formatted. The accuracy (±5cm) and resolution (±5mm) of the device do not change. I hope this is helpful. I'm not sure of your question, so please let me know if there is anything more I can add. Bud Ryerson |
Thank you very much for replying so quick! I changed it and worked as expected, the measures had an extra digit for milimetres, just needed to change the printf as having an extra cipher wouldn't show measures with 5 digits (measures over 10 m = 1000 cm = 10000 mm) and the text printing "mm" instead of "cm". I will put this as a pull request in case you want to add it to the library (more as a concept than an a good code). Bernat |
Hello!
I have been trying to change the precision of the device's reads but have been unsuccessful.
The TFMPlus.h file includes a line (137) with the definition for STANDARD_FORMAT_MM assigned to a certain hexadecimal value. This is next to other commands like SET_FRAME_RATE (with its corresponding hexadecimal value) that are used with the sendCommand() function in the TFMPlus.cpp, but said function works for the following commands:
SET_FRAME_RATE
SET_BAUD_RATE
OBTAIN_FIRMWARE_VERSION
SYSTEM_RESET
RESTORE_FACTORY_SETTINGS
SAVE_SETTINGS
and the change of format is not implemented here.
I would like to be able to fix this but I don't have enough knowledge and the warning of causing the device to be unresponsive prevents me from changing some things.
As far as I understand it should follow the commented steps in the function:
I assume steps 2, 4 and 6 should stay the same, but don't know if this command generates a reply or not (steps 3 and 5).
At the moment there is not much more I can do.
Anyway, thank you for the library!
The text was updated successfully, but these errors were encountered: