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

add support for checked register in Invensensev2 Driver #14823

Merged
merged 5 commits into from
Aug 6, 2020

Conversation

bugobliterator
Copy link
Member

This PR adds support for checked register setup for bank based addressing setups, like the one employed in Invensensev2 Driver.
The Logic trace is attached herewith for anyone to look. The contains data on the SPI bus on IMU board in CubeOrange, the sensor comms were disabled by pulling up the CS pin of the Invensensev2 sensor. Will also upload the flight test results as soon as done

Download Logic Data Trace

@bugobliterator
Copy link
Member Author

Here is the Flight log using the firmware built over this PR.
2020-07-16 17-17-40.bin.zip

Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

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

i think we need to extend DEVICE_OP with a mavlink2 extension for bank, and extend mavproxy devop, so we can test what happens when we overwrite a single register on an Invensense2

libraries/AP_HAL/Device.cpp Show resolved Hide resolved
@bugobliterator bugobliterator force-pushed the pr-checked_reg_invv2 branch 2 times, most recently from c220502 to d51bad2 Compare July 30, 2020 14:22
@bugobliterator
Copy link
Member Author

bugobliterator commented Jul 30, 2020

Hi @tridge I have added the support for devops using banks for SPI sensors only:
ArduPilot/MAVProxy#788
ArduPilot/mavlink#146

Also tested by modifying the register using the same, and I get correct behaviour.

@bugobliterator bugobliterator force-pushed the pr-checked_reg_invv2 branch 2 times, most recently from d91e04d to 4254e1c Compare August 5, 2020 08:21
@tridge
Copy link
Contributor

tridge commented Aug 5, 2020

pending CI, then merge

@peterbarker peterbarker merged commit aafc011 into ArduPilot:master Aug 6, 2020
@peterbarker
Copy link
Contributor

pending CI, then merge

Passed CI; merged.

@khancyr khancyr deleted the pr-checked_reg_invv2 branch June 7, 2022 19:51
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.

None yet

4 participants