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

PWM page improvements #400

Merged
merged 2 commits into from
Oct 31, 2021
Merged

Conversation

klutvott123
Copy link
Member

  • Downloads board info from the FC to get the gyro samplerate.
  • Brings back Gyro Update and PID Loop to the PWM page.
  • Improved the layout
  • Renamed the page menu entry to "System / Motor"

Looks like this now

screenshot_x7_21-10-10_22-13-38

@klutvott123 klutvott123 added this to the 1.6 milestone Oct 10, 2021
@klutvott123 klutvott123 force-pushed the pwm-page-improvements branch 3 times, most recently from 795c457 to 30cc6c0 Compare October 24, 2021 18:39
io.write(f, " i2cRegisteredDeviceCount = "..tostring(i2cRegisteredDeviceCount)..",", "\n")
io.write(f, "}", "\n")
io.close(f)
assert(loadScript("/BF/BOARD_INFO/"..mcuId..".lua", 'c'))

Choose a reason for hiding this comment

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

should be assert(loadScript("/SCRIPTS/BF/BOARD_INFO/"..mcuId..".lua", 'c'))

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! fixed

Copy link
Member Author

Choose a reason for hiding this comment

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

But actually it should just be assert(loadScript("BOARD_INFO/"..mcuId..".lua", 'c'))
Because we're changing the working directory here

Copy link
Member Author

Choose a reason for hiding this comment

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

Scratch that. Looks like the io library doesn't care about the working directory and expects the full path.

Copy link
Member Author

Choose a reason for hiding this comment

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

Scratch that too. We just need to make sure that the BOARD_INFO folder actually exists. Made the folder and added a readme.txt to it to explain what it's there for. Works as expected now.

@klutvott123 klutvott123 force-pushed the pwm-page-improvements branch from 30cc6c0 to 7e54d5c Compare October 27, 2021 18:16
TheIsotopes
TheIsotopes previously approved these changes Oct 28, 2021
@klutvott123 klutvott123 force-pushed the pwm-page-improvements branch 2 times, most recently from e2bafae to d41a79f Compare October 28, 2021 11:57
@klutvott123 klutvott123 force-pushed the pwm-page-improvements branch from d41a79f to 51d9267 Compare October 28, 2021 14:50
@mikeller mikeller merged commit 4a581f3 into betaflight:master Oct 31, 2021
@klutvott123 klutvott123 deleted the pwm-page-improvements branch November 26, 2021 20:43
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.

3 participants