-
Notifications
You must be signed in to change notification settings - Fork 180
SPEEDYBEEF405V5: Adjust current meter offset and scale #866
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughAdds two preprocessor macros to configs/SPEEDYBEEF405V5/config.h for ADC current meter calibration: DEFAULT_CURRENT_METER_SCALE set to 27 and DEFAULT_CURRENT_METER_OFFSET set to -2644. Inserted after DEFAULT_PID_PROCESS_DENOM; no existing lines modified or removed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
configs/SPEEDYBEEF405V5/config.h (1)
122-123
: Optional: annotate provenance of calibration valuesAdding a brief inline note helps future maintainers understand that these numbers are board-calibrated.
Apply this diff if you want the inline comments:
-#define DEFAULT_CURRENT_METER_SCALE 27 -#define DEFAULT_CURRENT_METER_OFFSET -2644 +#define DEFAULT_CURRENT_METER_SCALE 27 // board-calibrated ADC current scale +#define DEFAULT_CURRENT_METER_OFFSET -2644 // board-calibrated ADC current offset
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
configs/SPEEDYBEEF405V5/config.h
(1 hunks)
🔇 Additional comments (2)
configs/SPEEDYBEEF405V5/config.h (2)
122-123
: Calibrated ADC current meter defaults added — LGTMThese defaults look correct for a target-level override and align with CURRENT_METER_ADC being selected in this config.
122-123
: DEFAULT_CURRENT_METER_SCALE/OFFSET definitions are unique for SPEEDYBEEF405V5
All occurrences ofDEFAULT_CURRENT_METER_SCALE
andDEFAULT_CURRENT_METER_OFFSET
are defined only inconfigs/SPEEDYBEEF405V5/config.h
(lines 122–123) and nowhere else in the repository. No conflicting or duplicate#define
was found for this target.
The scale and offset do not make sense. How were these values determined? Can you post the schematic for the current sensor on the included ESC? Do these values even need to be set in the target? |
Adjust current meter offset and scale.
Summary by CodeRabbit