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

Added new DSHOT debug modes #4144

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

stylesuxx
Copy link

Follow up to #3262
Related to betaflight/betaflight#13855

  • Rebased on master
  • Bumped API versions
  • Moved EDT checkbox to separate row

damosvil and others added 4 commits August 28, 2024 02:35
Added checkbox to activate edt

Restore other translation files than the english one

Added logic to handle DSHOT edt checkbox in motors tab.
Bumped API_VERSION to 1.46.
Added dshot_edt setting to MSP_MOTOR_CONFIG frame.
Added dshot_edt setting to MSP_SET_MOTOR_CONFIG frame.
Updated API_VERSION in generate_filename.

Fixed features in motors tab.
Added exclusive selection between ESC_SENSOR and EDT options.

Fixed a bug

Fixed review findings

Removed unecessary imports

Fixed review findings

Fixed review findings

Added debug mode to match edt_events Betaflight branch

Fixed RPM_LIMIT debug mode name

Small refactoring to be coherent to current code style
@stylesuxx stylesuxx marked this pull request as draft August 28, 2024 23:50
Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for origin-betaflight-app ready!

Name Link
🔨 Latest commit becdc62
🔍 Latest deploy log https://app.netlify.com/sites/origin-betaflight-app/deploys/66cfb7ad76f61e00083c9449
😎 Deploy Preview https://deploy-preview-4144.dev.app.betaflight.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

FC.MOTOR_CONFIG.use_dshot_telemetry = data.readU8() != 0;
FC.MOTOR_CONFIG.use_esc_sensor = data.readU8() != 0;

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_42)) {
Copy link
Member

Choose a reason for hiding this comment

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

@haslinghuis , the need for if semver 1.42 is removed now correct?

// Introduced in 1.42
buffer.push8(FC.MOTOR_CONFIG.motor_poles);
buffer.push8(FC.MOTOR_CONFIG.use_dshot_telemetry ? 1 : 0);
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_42)) {
Copy link
Member

Choose a reason for hiding this comment

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

same as above (no need semver 1.42)?

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

Successfully merging this pull request may close these issues.

4 participants