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

AUAV Airspeed Sensor Driver #27802

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Tdogb
Copy link
Contributor

@Tdogb Tdogb commented Aug 10, 2024

Drivers for the Amphenol AUAV airspeed sensor. This is a relatively new UAV specific airspeed sensor. I don't know why Amphenol didn't write their own Ardupilot drivers, but I did it for them since this looks like a really awesome sensor.

https://www.mouser.com/new/amphenol/amphenol-auav-air-speed-altitude-sensors/

@MallikarjunSE
Copy link
Contributor

These actually provide absolute pressure measurement too.

@Tdogb
Copy link
Contributor Author

Tdogb commented Aug 10, 2024

These actually provide absolute pressure measurement too.

Nice! Although I'm going to leave that to someone else to implement if they want :)

Copy link
Collaborator

@Hwurzburg Hwurzburg left a comment

Choose a reason for hiding this comment

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

needs extract_features.py also

libraries/AP_HAL_ChibiOS/hwdef/include/minimize_common.inc Outdated Show resolved Hide resolved
libraries/AP_Airspeed/AP_Airspeed_AUAV.cpp Show resolved Hide resolved
libraries/AP_Airspeed/AP_Airspeed_AUAV.cpp Outdated Show resolved Hide resolved
libraries/AP_Airspeed/AP_Airspeed_AUAV.cpp Show resolved Hide resolved
libraries/AP_Airspeed/AP_Airspeed_AUAV.cpp Outdated Show resolved Hide resolved
@peterbarker
Copy link
Contributor

Ping @Tdogb - also needs to pass CI :-)

@Tdogb
Copy link
Contributor Author

Tdogb commented Aug 20, 2024

Hey guys, I think it would be super cool to implement the absolute pressure sensing capability. Does anyone have strong opinions on how this is implemented? I don't want someone to unknowingly have it override their baro

@peterbarker
Copy link
Contributor

Hey guys, I think it would be super cool to implement the absolute pressure sensing capability. Does anyone have strong opinions on how this is implemented? I don't want someone to unknowingly have it override their baro

Maybe do that as a second stage?

I'll mark this for DevCallEU so we think about your question anyway. We do have some precendents for detecting something as two different sensor types.

@tridge
Copy link
Contributor

tridge commented Aug 21, 2024

just as an airspeed sensor initially is the way to go

@peterbarker
Copy link
Contributor

@Tdogb did you need assistance on this one, or still plugging away at it?

@MallikarjunSE
Copy link
Contributor

@peterbarker i tried this pr. Was able to get differential pressure output. But temperature didn't work for me.

@Tdogb
Copy link
Contributor Author

Tdogb commented Sep 22, 2024

@peterbarker i tried this pr. Was able to get differential pressure output. But temperature didn't work for me.

Temperature is compensated for but the real temperature value isn't read because there isn't documentation on it.

I had accidentally pushed some other dev code I have to this branch so I removed it.

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.

There are still changes requested from my previous review

libraries/AP_Airspeed/AP_Airspeed.cpp Outdated Show resolved Hide resolved
libraries/AP_Airspeed/AP_Airspeed_AUAV.cpp Outdated Show resolved Hide resolved
@tridge
Copy link
Contributor

tridge commented Jan 30, 2025

@MallikarjunSE @Tdogb I've force pushed some fixes:

  • temperature now works
  • supports 3 pressure ranges
  • removed the absolute code
  • use 8x sampling for lower noise

I've bench tested buy not flight tested. Please test!

@MallikarjunSE
Copy link
Contributor

MallikarjunSE commented Jan 30, 2025

@MallikarjunSE @Tdogb I've force pushed some fixes:

  • temperature now works
  • supports 3 pressure ranges
  • removed the absolute code
  • use 8x sampling for lower noise

I've bench tested buy not flight tested. Please test!

Hey @tridge
Tested L10D on DroneCAN periph device. Works! Will test L30D in sometime.
Thank you!
image

@MallikarjunSE
Copy link
Contributor

@tridge tested on L30D. Works!
image

@MallikarjunSE
Copy link
Contributor

Hey @tridge
below is temperature comparison between DroneCAN periph vs I2C directly plugged in. Temperature update rate seems to be too low on DroneCAN? Or it's sufficient?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants