mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
more analytics stuff
This commit is contained in:
parent
1ff4fcb669
commit
03a63ce2c5
9 changed files with 18 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_about() {
|
||||
ga_tracker.sendAppView('About Page');
|
||||
|
||||
// enable data pulling
|
||||
timers.push(setInterval(about_data_poll, 50));
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_auxiliary_configuration() {
|
||||
ga_tracker.sendAppView('Auxiliary Configuration');
|
||||
|
||||
// generate table from the supplied AUX names and AUX data
|
||||
for (var i = 0; i < AUX_CONFIG.length; i++) {
|
||||
$('.tab-auxiliary_configuration .boxes > tbody:last').append(
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_cli() {
|
||||
ga_tracker.sendAppView('CLI Page');
|
||||
|
||||
CLI_active = true;
|
||||
|
||||
// Enter CLI mode
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_gps () {
|
||||
ga_tracker.sendAppView('GPS Page');
|
||||
|
||||
// enable data pulling
|
||||
timers.push(setInterval(gps_pull, 75));
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
var yaw_fix = 0.0;
|
||||
|
||||
function tab_initialize_initial_setup() {
|
||||
ga_tracker.sendAppView('Initial Setup');
|
||||
|
||||
// Fill in the accel trimms from CONFIG object
|
||||
$('input[name="pitch"]').val(CONFIG.accelerometerTrims[0]);
|
||||
$('input[name="roll"]').val(CONFIG.accelerometerTrims[1]);
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_motor_outputs() {
|
||||
ga_tracker.sendAppView('Motor Outputs Page');
|
||||
|
||||
// enable Motor data pulling
|
||||
timers.push(setInterval(motorPoll, 50));
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_pid_tuning() {
|
||||
ga_tracker.sendAppView('PID Tuning');
|
||||
|
||||
// Fill in the data from PIDs array
|
||||
var needle = 0;
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
var samples_i;
|
||||
function tab_initialize_receiver() {
|
||||
ga_tracker.sendAppView('Receiver Page');
|
||||
|
||||
// fill in data from RC_tuning
|
||||
$('.tunings .throttle input[name="mid"]').val(RC_tuning.throttle_MID.toFixed(2));
|
||||
$('.tunings .throttle input[name="expo"]').val(RC_tuning.throttle_EXPO.toFixed(2));
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
function tab_initialize_sensors() {
|
||||
ga_tracker.sendAppView('Sensor Page');
|
||||
|
||||
// Setup variables
|
||||
samples_gyro_i = 300;
|
||||
samples_accel_i = 300;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue