Fixed Sonar warnings
renaming MOTOR_REMAP to MOTOR_OUTPUT_REORDER<ING>
Sonar warning fix
Code style fixes after the code review
moving styles to css from the motors tab dialog
Dialog size of Androind devices
Raneming MSP_<SET>_MOTOR_OUTPUT_REORDERING to MSP2
removing old styles and js files reference to motor_remap folder
adding FC.* where needed to accomodate new master changes
fixed alphabetical order for FC settings MOTOR_OUTPUT_REORDER
css fix for Android for motor reordering dialog
Cordova integration and android platform :
- Added cordova directory with required config
- Added cordova applications generation in gulpfile
- Added cordova development instructions
- Used cordova plugins to simulate missing chrome api plugins (chrome.serial and chrome.fileSystem)
- Added cordova clipboard support
- Added android operating system and Cordova gui mode
- Fixed some css and js files to make them working on Android as well as on computers
- Added --skipdep argument to accelerate cordova build (gulp task)
- Added a webview helper to help people to update the webview app of their device
New options tab :
- Added options tab replacing the options dropdown
- Added option to switch between phones UI and computers UI
Mobile interface and global interface improvements :
- Simplified the structure of the header with flex css
- Made headerbar and tab container responsive (compact headerbar and side menu)
- All tabs are adapted to mobile interface (except firmware flasher)
- The servos and adjustments tabs are not fully adapted but are "usable"
- Improved header bar animation
- Improved log expandation animation
- Added swipe gesture to toggle side menu
Fixes during the development :
- Logo position
- Dark mode
- Auto connection
- Error messages (cordova_chromeapi.js)
- Responsive grid
- Testing
- Disconnection
- Width of boxes inside the OSD tab
- Fixed cli tab
- OSD tab
- Motor stop switch
- White spaces in boxes
- Dialogs size
- Connect button state
- Prevent tablet with a height larger than 575px to switch to computers ui
- Fixed logging tab
- Fixed code smell
- Fixed yarn cordova plugin install issue
- Fixed content_wrapper
- Fixed vibrations when scrolling
- Fixed scrolling bar alignment
- Fixed dialogReportProblem height
- Fixed rates logo
- Fixed auto connection default value (true)
- Fixed D to D max
- Fixed dialogs
Added required messages in locales/en/messages.json file
Requested changes
I've done my best to look for any references to font awesome, and I don't see any. Is possible that the icons on the left were initially from font-awesome.
This allows two things:
1. good user experience when flashing devices that use FLASH
bootloaders. previously users would have to use `bl flash` or enter
flash bootloader manually.
2. arbitrary setting of cli reboot character without breaking ability to
reboot flash via configurator.
Squashed commits:
* Extract MSPConnector from code in stm32.js to allow reuse.
* Use reboot_baud when connecting via MSP.
* Ensure GUI connect is unlocked after connect failures.
* Support legacy reboot method for old firmware.
* Don't treat MSPConnector as a singleton.
* Fix `port` usage in handlers.
* Add short delay after closing serial port before re-opening it again.
* separate our styling from a libraries included .css
* update npm packages: bluebird, inflection, jbox, jquery, jquery-ui-npm
* ports and osd tabs needed small javascript changes for the above
* refactored CSS style sheets, in summary Cascading was being ignored
* tweaked colors in dark mode.
* tweaked betaflight logo for dark mode care of frozenskys
* dark mode can also trigger on `(prefers-color-scheme: dark)` signal from the OS when NW.js 0.40.0/Chrome 76 is released.
* changed how `gulp-appdmg` is brought in, mixing yarn and npm was causing trouble
* version.json is now written in a more gulpful manner
Note: this works fine with NW.js 0.40.0-beta1