-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New feature: SmartPort battery sensor #11045
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
New feature: SmartPort battery sensor #11045
Conversation
Voltage and current sensors from smartport master can now be used as voltage and current sensors for inav
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
|
Thanks for submitting this, and for explicitly listing the testing you did! |
User description
Enables FrSky SmartPort sensors like FAS100 or UniSens-E to be used as battery sensors for iNav.
Usage:
SMARTPORTas Voltage and/or Current Meter TypeI have tested:
PR Type
Enhancement
Description
This description is generated by an AI tool. It may have inaccuracies
Add SmartPort battery sensor support for voltage/current
Enable FrSky SmartPort sensors as battery meters
Add new sensor types
SMARTPORTfor configurationImplement data decoding and timeout handling
Diagram Walkthrough
File Walkthrough
smartport_master.c
SmartPort voltage and current sensor implementationsrc/main/io/smartport_master.c
smartport_master.h
SmartPort battery sensor API declarationssrc/main/io/smartport_master.h
battery.c
Battery system SmartPort sensor integrationsrc/main/sensors/battery.c
battery_config_structs.h
Battery sensor configuration enum updatessrc/main/sensors/battery_config_structs.h
Settings.md
Documentation update for SmartPort sensordocs/Settings.md
settings.yaml
Settings configuration for SmartPort sensorssrc/main/fc/settings.yaml