Skip to content
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

Pitot sensor fixes and improvements #3977

Merged
merged 2 commits into from
Jan 7, 2019
Merged

Conversation

digitalentity
Copy link
Member

  • Refactor pitot tube sensor
  • Change filtering and defaults
  • Change I2C driver code to handle 0xFF register address
  • Better MS4525 sensor driver
  • Validate default calibration for MS4525 and ADC sensors

float dP = (10 * (int32_t)(dp_raw)) * 0.1052120688f;
float T = (float)(200 * (int32_t)dT_raw - 102350) / 2047 + 273.15f;
//float dP = ctx->ms4525_up * 10.0f * 0.1052120688f;
const float dP_psi = -((ctx->ms4525_up - 0.1f * 16383) * (P_max - P_min) / (0.8f * 16383) + P_min);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the Negative Sign('-') Intentional? Seems redundant anyway, but I wondered if that had any physical meaning :/

@digitalentity digitalentity merged commit 1df1d97 into development Jan 7, 2019
@digitalentity digitalentity deleted the de_pitot_fixes branch January 7, 2019 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants