-
-
Notifications
You must be signed in to change notification settings - Fork 250
CF/BF - Update configurator for API 1.33.0. #450
Conversation
Currently the most tabs are working OK.
|
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.
👍 Looks good.
js/fc.js
Outdated
@@ -182,31 +225,50 @@ var FC = { | |||
FC_CONFIG = { | |||
loopTime: 0 | |||
}; | |||
|
|||
MISC = { | |||
|
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.
Space.
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.
MISC will be deleted soon 😄
js/fc.js
Outdated
deadband3d_low: 0, | ||
deadband3d_high: 0, | ||
neutral3d: 0, | ||
deadband3d_throttle: 0 | ||
neutral: 0, |
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.
Space.
js/fc.js
Outdated
midrc: 0, | ||
mincheck: 0, | ||
stick_max: 0, | ||
stick_center: 0, |
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.
Space.
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.
there will be many spaces, i did LOTS of search and replacing today. I'll go over it again after it's functional, no point aligning things at this stage.
@@ -148,6 +148,9 @@ var MSP = { | |||
this.listeners = []; | |||
}, | |||
send_message: function (code, data, callback_sent, callback_msp, callback_onerror) { | |||
if (code === undefined) { | |||
debugger; |
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.
Intentionally throwing an exception?
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.
yes, to catch the stacktrace, will be removed from production code.
tabs/onboard_logging.js
Outdated
@@ -110,7 +110,7 @@ TABS.onboard_logging.initialize = function (callback) { | |||
* The best we can do on those targets is check the BLACKBOX feature bit to identify support for Blackbox instead. | |||
*/ | |||
if (BLACKBOX.supported || DATAFLASH.supported | |||
|| semver.gte(CONFIG.flightControllerVersion, "1.5.0") && semver.lte(CONFIG.flightControllerVersion, "1.10.0") && BF_CONFIG.features.isEnabled('BLACKBOX')) { | |||
|| semver.gte(CONFIG.flightControllerVersion, "1.5.0") && semver.lte(CONFIG.flightControllerVersion, "1.10.0") && FEATURE_CONFIG.features.isEnabled('BLACKBOX')) { |
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.
Should this be checking apiVersion
instead?
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.
probably. I'll be stripping a out all the old conditional code that's not currently getting in the way in later commits.
c968978
to
5926b54
Compare
current status, fully working but lacks the battery/power tab to configure current/voltage sensors and battery. |
391db81
to
0339208
Compare
b497434
to
0ebdeac
Compare
rebased against master. I'm going to de-scope this PR. what's there is fine for a release, we can do the remainder of the tasks in this PR later. |
currently the code is working, there's a few minor cleanups to do which I will do now before merging to master. |
eaa7f0d
to
d9d3b6d
Compare
More work is required to support ARCITIMER.
The voltage and amperage meters cannot yet be configured and are disabled.
configuration tab.
bargraph can be calculated.
betaflight. Also fix missing save of GPS and Compass configuration.
4725f74
to
0b779ff
Compare
The reason is because the SPRacingF4EVO shipped with cf 1.33.0 (rc1), this forces the user to upgrade and ensures those users don't have a broken experiance.
0b779ff
to
2540f17
Compare
4e20c66
to
8a3ca04
Compare
…ght-versions Corrections to some BetaFlight references
* Replaces Setup tab with Setup OSD tab for OSD Slave boards - ported from CF v1.x. * Disables CLI tab for OSD Slave boards - due to cleanflight/cleanflight#2710 *
only thing really missing right now is current and voltage meter configuration. what's done so far needs to be released - will follow up with another PR for additional work/features. |
PR goals:
Move RX configuration from Config tab to RX tab (from CF configurator v1.x)Move RSSI configuration from Config tab to RX tab.Testing is currently being done with CF 2.0.0 master.
Although some items are marked as 'from CF configurator v1.x' not that much actual js code is being used due to recent changes, however the html/css/messages are mainly work ok so the porting is manual.