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