Skip to content

Conversation

@stephendyoung
Copy link

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.

stephendyoung and others added 2 commits November 24, 2025 00:16
…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.
Copy link
Contributor

@peterbarker peterbarker left a 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)
Copy link
Contributor

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


Copy link
Contributor

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 {
Copy link
Contributor

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.

Comment on lines +64 to +66
float _last_q = 0.0f;
float _last_temperature = 0.0f;
bool _healthy = false;
Copy link
Contributor

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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#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"
Copy link
Contributor

Choose a reason for hiding this comment

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

more comments to remove

@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WikiNeeded needs wiki update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants