-
Notifications
You must be signed in to change notification settings - Fork 19.8k
AOA Sensor #31570
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
base: master
Are you sure you want to change the base?
AOA Sensor #31570
Conversation
…ure from previously written honeywell pitot code. That will then use the pressure to calculate aoa based on change in pressure. Currently having problems with an endless cycle of 'getting params 1' dialogue box not fully completing.
peterbarker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to understand how this might interact with @Ryanf55 's airspeed data library.
Very much a partial review only.
| // public: // everything below is accessible from outside the class | ||
| // AP_Airspeed_PitotHoneywell(AP_Airspeed &frontend, int8_t bus, uint8_t address); | ||
|
|
||
| // /* constructor that i called when the backend is created. frontend is the reference to the main airspeed mananger (AP_Airspeed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many comments to remove
| // float _last_q = 0.0f; // stores the last measured differential pressure. EKF reads this in update() | ||
| // bool _healthy = false; // tracks whether the last read succeeded. if read ok -> true, if error/no response -> false. it prevents bad data feeding into flight controller | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide a link to the datasheet for the device.
| #include <AP_HAL/AP_HAL.h> | ||
| #include "AP_Airspeed_Backend.h" | ||
|
|
||
| class AP_Airspeed_PitotHoneywell : public AP_Airspeed_Backend { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a strange name for the device.
| float _last_q = 0.0f; | ||
| float _last_temperature = 0.0f; | ||
| bool _healthy = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't zero these; ArduPilot implicitly zeroes allocated memory, so this just wastes flash
|
|
||
| // }; | ||
| #pragma once | ||
| #include <AP_HAL/AP_HAL.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #include <AP_HAL/AP_HAL.h> | |
| #pragma once | |
| #include "AP_Airspeed_config.h" | |
| #if AP_AIRSPEED_PITOTHONEYWELL_ENABLED | |
| #include <AP_HAL/AP_HAL.h> |
... but adjusted for a better device name
| @@ -0,0 +1,254 @@ | |||
| // #include "AOA_AOA.h" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more comments to remove
added capability to use new pressure transducer to read dynamic pressure from previously written honeywell pitot code. That will then use the pressure to calculate aoa based on change in pressure. Currently having problems with an endless cycle of 'getting params 1' dialogue box not fully completing.