1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

enable strict mode in couple more files

This commit is contained in:
cTn 2014-08-09 20:01:17 +02:00
parent 36f456d2e7
commit 20e6ad0074
10 changed files with 21 additions and 2 deletions

View file

@ -1,3 +1,5 @@
'use strict';
// TODO: rework box_highlight & update_ui to accept flexible amount of aux channels // TODO: rework box_highlight & update_ui to accept flexible amount of aux channels
tabs.auxiliary_configuration = {}; tabs.auxiliary_configuration = {};
tabs.auxiliary_configuration.initialize = function(callback) { tabs.auxiliary_configuration.initialize = function(callback) {

View file

@ -1,3 +1,5 @@
'use strict';
var CLI_active = false; var CLI_active = false;
var CLI_valid = false; var CLI_valid = false;

View file

@ -1,3 +1,5 @@
'use strict';
tabs.default = {}; tabs.default = {};
tabs.default.initialize = function(callback) { tabs.default.initialize = function(callback) {
GUI.active_tab_ref = this; GUI.active_tab_ref = this;

View file

@ -1,3 +1,5 @@
'use strict';
tabs.gps = {}; tabs.gps = {};
tabs.gps.initialize = function(callback) { tabs.gps.initialize = function(callback) {
GUI.active_tab_ref = this; GUI.active_tab_ref = this;

View file

@ -1,3 +1,5 @@
'use strict';
tabs.initial_setup = { tabs.initial_setup = {
yaw_fix: 0.0 yaw_fix: 0.0
}; };

View file

@ -1,3 +1,5 @@
'use strict';
tabs.motor_outputs = {}; tabs.motor_outputs = {};
tabs.motor_outputs.initialize = function(callback) { tabs.motor_outputs.initialize = function(callback) {
GUI.active_tab_ref = this; GUI.active_tab_ref = this;
@ -99,7 +101,7 @@ tabs.motor_outputs.initialize = function(callback) {
} }
function drawGraph(graphHelpers, data, sampleNumber) { function drawGraph(graphHelpers, data, sampleNumber) {
svg = d3.select(graphHelpers.selector); var svg = d3.select(graphHelpers.selector);
if (graphHelpers.dynamicHeightDomain) { if (graphHelpers.dynamicHeightDomain) {
var limits = []; var limits = [];

View file

@ -1,3 +1,5 @@
'use strict';
tabs.pid_tuning = {}; tabs.pid_tuning = {};
tabs.pid_tuning.initialize = function(callback) { tabs.pid_tuning.initialize = function(callback) {
GUI.active_tab_ref = this; GUI.active_tab_ref = this;

View file

@ -1,3 +1,5 @@
'use strict';
tabs.receiver = {}; tabs.receiver = {};
tabs.receiver.initialize = function(callback) { tabs.receiver.initialize = function(callback) {
GUI.active_tab_ref = this; GUI.active_tab_ref = this;

View file

@ -1,3 +1,5 @@
'use strict';
tabs.sensors = {}; tabs.sensors = {};
tabs.sensors.initialize = function(callback) { tabs.sensors.initialize = function(callback) {
GUI.active_tab_ref = this; GUI.active_tab_ref = this;
@ -102,7 +104,7 @@ tabs.sensors.initialize = function(callback) {
} }
function drawGraph(graphHelpers, data, sampleNumber) { function drawGraph(graphHelpers, data, sampleNumber) {
svg = d3.select(graphHelpers.selector); var svg = d3.select(graphHelpers.selector);
if (graphHelpers.dynamicHeightDomain) { if (graphHelpers.dynamicHeightDomain) {
var limits = []; var limits = [];

View file

@ -4,6 +4,7 @@
from multiwii is so horrible, obstructive and non dynamic, not to mention it doesn't make any sense 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. that there was just no other way around this then hardcoding/implementing each model separately.
*/ */
'use strict';
tabs.servos = {}; tabs.servos = {};
tabs.servos.initialize = function(callback) { tabs.servos.initialize = function(callback) {