mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
enable strict mode in couple more files
This commit is contained in:
parent
36f456d2e7
commit
20e6ad0074
10 changed files with 21 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
// TODO: rework box_highlight & update_ui to accept flexible amount of aux channels
|
||||
tabs.auxiliary_configuration = {};
|
||||
tabs.auxiliary_configuration.initialize = function(callback) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
var CLI_active = false;
|
||||
var CLI_valid = false;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.default = {};
|
||||
tabs.default.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.gps = {};
|
||||
tabs.gps.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.initial_setup = {
|
||||
yaw_fix: 0.0
|
||||
};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.motor_outputs = {};
|
||||
tabs.motor_outputs.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
|
@ -99,7 +101,7 @@ tabs.motor_outputs.initialize = function(callback) {
|
|||
}
|
||||
|
||||
function drawGraph(graphHelpers, data, sampleNumber) {
|
||||
svg = d3.select(graphHelpers.selector);
|
||||
var svg = d3.select(graphHelpers.selector);
|
||||
|
||||
if (graphHelpers.dynamicHeightDomain) {
|
||||
var limits = [];
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.pid_tuning = {};
|
||||
tabs.pid_tuning.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.receiver = {};
|
||||
tabs.receiver.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
tabs.sensors = {};
|
||||
tabs.sensors.initialize = function(callback) {
|
||||
GUI.active_tab_ref = this;
|
||||
|
@ -102,7 +104,7 @@ tabs.sensors.initialize = function(callback) {
|
|||
}
|
||||
|
||||
function drawGraph(graphHelpers, data, sampleNumber) {
|
||||
svg = d3.select(graphHelpers.selector);
|
||||
var svg = d3.select(graphHelpers.selector);
|
||||
|
||||
if (graphHelpers.dynamicHeightDomain) {
|
||||
var limits = [];
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
from multiwii is so horrible, obstructive and non dynamic, not to mention it doesn't make any sense
|
||||
that there was just no other way around this then hardcoding/implementing each model separately.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
tabs.servos = {};
|
||||
tabs.servos.initialize = function(callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue