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

AP_HAL_ChibiOS: convert back to full range on IOMCU ONESHOT125 read #18591

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Sep 6, 2021

Fixes #13517

Simply the inverse of the calculation done here:

if ((iomcu_mode == MODE_PWM_ONESHOT125) && ((1U<<chan) & io_fast_channel_mask)) {
// the iomcu only has one oneshot setting, so we need to scale by a factor
// of 8 here for oneshot125
io_period_us /= 8;
}

Tested on CubeOrange

@tridge tridge merged commit 529a3a9 into ArduPilot:master Sep 8, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AP_Logger: OneShot125 could/should be logged in 1000~2000 range
3 participants