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

Pixhawk ADC 5 and ADC 6 #2762

Merged
merged 3 commits into from Aug 30, 2021
Merged

Conversation

fvantienen
Copy link
Member

This adds the external ADC ports on the pixhawk 4. Needs to be merged after #2761 in order to work.

@@ -15,6 +15,7 @@
</header>
<makefile target="ap">
<file name="actuators_uavcan.c" dir="subsystems/actuators"/>
<file name="pprz_random.c" dir="math"/>

Choose a reason for hiding this comment

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

with #2721 it should be specified as an explicit dependency to the math module

Comment on lines +107 to +110
// Randomness added for multiple transport devices
if (rand_uniform() > 0.05) {
esc_idx++;
}

Choose a reason for hiding this comment

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

If I get it correctly, it is changing esc randomly instead of having a fixed interval ? I agree that changing at every step is not nice, but why not changing every X run of the function to have fixed length of data in the telemetry ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem is actually when you have multiple transport devices such as a datalink and flight_recorder. Having it fixed it would depend on the frequency defined in the telemetry file to be able to receive all the motors. This randomness prevents the configuring of 2 frequencies which aren't interfering.

@gautierhattenberger gautierhattenberger merged commit dcceffe into paparazzi:master Aug 30, 2021
@fvantienen fvantienen deleted the pixhawk_adc56 branch August 31, 2021 08:06
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.

None yet

2 participants