mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
bugfixes & tiny optimizations
This commit is contained in:
parent
fd62b8568c
commit
01a5c753aa
6 changed files with 585 additions and 582 deletions
|
@ -224,7 +224,6 @@ function process_data(command, message_buffer, message_length_expected) {
|
|||
CONFIG.profile = data.getUint8(10);
|
||||
|
||||
$('span.cycle-time').html(CONFIG.cycleTime);
|
||||
sensor_status(CONFIG.activeSensors);
|
||||
break;
|
||||
case MSP_codes.MSP_RAW_IMU:
|
||||
SENSOR_DATA.accelerometer[0] = data.getInt16(0, 1) / 1000; // properly scaled
|
||||
|
|
|
@ -190,17 +190,14 @@ function onOpen(openInfo) {
|
|||
}
|
||||
}, 10000);
|
||||
|
||||
// baseflight specific
|
||||
send_message(MSP_codes.MSP_UID, MSP_codes.MSP_UID);
|
||||
send_message(MSP_codes.MSP_ACC_TRIM, MSP_codes.MSP_ACC_TRIM);
|
||||
|
||||
// request configuration data
|
||||
send_message(MSP_codes.MSP_STATUS, MSP_codes.MSP_STATUS);
|
||||
send_message(MSP_codes.MSP_PID, MSP_codes.MSP_PID);
|
||||
send_message(MSP_codes.MSP_RC_TUNING, MSP_codes.MSP_RC_TUNING);
|
||||
send_message(MSP_codes.MSP_UID, MSP_codes.MSP_UID);
|
||||
send_message(MSP_codes.MSP_STATUS, MSP_codes.MSP_STATUS); // in theory this could be removed (MSP_STATUS is pulled in initial tab)
|
||||
send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() {
|
||||
GUI.timeout_remove('connecting'); // kill connecting timer
|
||||
|
||||
// Update UI elements that doesn't need consistent refreshing
|
||||
sensor_status(CONFIG.activeSensors);
|
||||
$('.software-version').html(CONFIG.version);
|
||||
|
||||
configuration_received = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue