Comments (3)
Turns out this is a bit more tricky: Settings sometime require a function to determine if they are visible or not. This can not easily be abstracted into JSON. Obviously we don't want to blindly pull in stuff and execute functions since this could open doors for exploits.
from esc-configurator.
The visibility conditions are actually pretty trivial since they only reference fields in settings:
visibleIf: (settings) => settings.VARIABLE_PWM_FREQUENCY === 0,
could be abstracted in JSON of this form:
{
field: 'VARIABLE_PWM_FREQUENCY',
operator: 'equal',
value: 0
}
depending on operator the value should hold different fields - the following options would cover all currently used visibleIf statements in AM32, BlHeli_S and Bluejay:
- equal: single value
- notEqual: single value
- oneOf: array of values
Obviously we would lose flexibility this way, but reduce maintanance of the Sources to basically zero, since they can be maintained in the repository itself.
Still leaves place for firmware maintainers to do something not intended and break functionality.
from esc-configurator.
There is a PR in preparation that aims at fetching the versions directly from the firmware repositories #147
ESC layouts were already moved to the repository itself, they are no longer fetched from 3rd party repositories.
This issue is thus pretty much obsolete.
from esc-configurator.
Related Issues (20)
- Read ESC 4: UNKNOWN HOT 2
- FLASH writes hanging with a timeout in Betaflight when using Chrome on MacOS HOT 9
- Esc configurator keeps thinking radio is connected HOT 7
- Spelling
- Can't flash on BLHeliS ESC FVT Littlebee 30A HOT 3
- Remove AM32 functionality
- Add Russian translation HOT 4
- Fail to read settings from SPEEDYBEEF7V3 HOT 1
- flash esc HOT 9
- https://esc-configurator.com/ HOT 1
- Failed to read 4 escs' HOT 1
- SpeedyBee F405 V3 stack RPM Reporting 0 HOT 5
- Does not connect to serial port. HOT 1
- BetaFPV Meteor75 - ESC 1: **FLASH*FAILED** HOT 2
- Port already in use by another application - try re-connecting HOT 4
- ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ version '16.7' (Layout 33) is not yet supported. HOT 2
- Port already in use by another application - try re-connecting HOT 6
- モーターのdirectionをreverse できなくしてしまいました。 HOT 6
- esc HOT 3
- Issue connecting my Speedybee esc to esc configurator HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esc-configurator.