mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
immediately pull plots on start
This commit is contained in:
parent
75588cbf48
commit
d953917953
1 changed files with 3 additions and 3 deletions
|
@ -227,15 +227,15 @@ function tab_initialize_sensors() {
|
||||||
|
|
||||||
GUI.interval_add('IMU_pull', function imu_data_pull() {
|
GUI.interval_add('IMU_pull', function imu_data_pull() {
|
||||||
send_message(MSP_codes.MSP_RAW_IMU, MSP_codes.MSP_RAW_IMU, false, update_imu_graphs);
|
send_message(MSP_codes.MSP_RAW_IMU, MSP_codes.MSP_RAW_IMU, false, update_imu_graphs);
|
||||||
}, fastest);
|
}, fastest, true);
|
||||||
|
|
||||||
GUI.interval_add('altitude_pull', function altitude_data_pull() {
|
GUI.interval_add('altitude_pull', function altitude_data_pull() {
|
||||||
send_message(MSP_codes.MSP_ALTITUDE, MSP_codes.MSP_ALTITUDE, false, update_altitude_graph);
|
send_message(MSP_codes.MSP_ALTITUDE, MSP_codes.MSP_ALTITUDE, false, update_altitude_graph);
|
||||||
}, rates.baro);
|
}, rates.baro, true);
|
||||||
|
|
||||||
GUI.interval_add('debug_pull', function debug_data_pull() {
|
GUI.interval_add('debug_pull', function debug_data_pull() {
|
||||||
send_message(MSP_codes.MSP_DEBUG, MSP_codes.MSP_DEBUG, false, update_debug_graphs);
|
send_message(MSP_codes.MSP_DEBUG, MSP_codes.MSP_DEBUG, false, update_debug_graphs);
|
||||||
}, rates.debug);
|
}, rates.debug, true);
|
||||||
|
|
||||||
function update_imu_graphs() {
|
function update_imu_graphs() {
|
||||||
gyro_data[0].push([samples_gyro_i, SENSOR_DATA.gyroscope[0]]);
|
gyro_data[0].push([samples_gyro_i, SENSOR_DATA.gyroscope[0]]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue