-
Notifications
You must be signed in to change notification settings - Fork 22
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
Adoption of XGZP6897D Differential Pressure Sensor #128
Comments
Just downloaded the 2.12.4 Version and will try to get some debug data If you like I can send you one of these sensors (if you are in the EU... US takes ages) . I got 2 :-) |
Perhaps we can find the issue with the debug messages. |
looks good, values are definitely changing when blowing over it rawPres=66695 |
In the version you tested I made 2 changes:
|
I made a new version 2.12.5 in order to manage negative pressure (the sensor is differential and so some values can be negative. |
you're a wizard :-) rawPres=-30229 |
hmm. at the same time there seems to be a lot of noise rawPres=1733 |
Yes but this is perhaps not so abnormal. Best is to check the airspeed calculated by oXs and see if it is realistic. Do not expect an realistic value when speed is less than about 15 km/h because this result of very low difference of pressure. |
FYI tTaking into account the negative values is not bad:
|
ok cool Currently this is all a crude test setup botched together with some wires. I now ordered stuff to actually mount it to my glider. I would assume I put it in the plane, hook up SBUS and tweak the compensation adjustment channel until I get a consistent result. Is this correct !? Which oXs version should I use now? The master or still test? |
Use always test branch. I put all new functions there. Still take care that there can be some not yet known bugs. Some users tested the airspeed while running with a car. One man drives the car, another hold the pitot tube outside. The value is read on the handset. |
Do I have to change the k value in the code or is the calibration done solely done with the compensation channel ? |
You have to change manually in config.h the value for XGZP_K_FACTOR |
The compensation is a parameter used only for the compensated aispeed. it does not matter to calculate the airspeed. |
I dont really care for airspeed, I'm just interested in the vario compensation. So my thought was not to bother with the k value. Also in the datasheet, all models below 1kPa have the same k value. |
hmm
`Version = 2.13.1 Esc type is not defined Protocol is Sport (Frsky) |
What do you mean with "calibration"? At power on oXs makes several (32) measurements and uses the average as offset. |
ok processing cmd Cmd to execute: FV Vspeed = 3 cm/s Cmd to execute: FV Vspeed = 1 cm/s processing cmd Cmd to execute: FV Vspeed = 1 cm/s |
I use negative values because they can help during the calibration process (to calculate offset) |
Datasheet
XGZP6897D-Pressure-Sensor-V2.7.pdf
In Test is the 3.3V 500Pa Variant. Currently the sensor is recognized, but no measurements are displayed when using FV. In parallel a GY-63 is connected so I²c should be terminated without using pullups
The text was updated successfully, but these errors were encountered: