mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
css3 compass O.o
This commit is contained in:
parent
a8c76cf278
commit
e1c1522da5
5 changed files with 109 additions and 2 deletions
|
@ -40,6 +40,10 @@ function data_poll() {
|
|||
$('td.sats').html(GPS_DATA.numSat);
|
||||
$('td.distToHome').html(GPS_DATA.distanceToHome);
|
||||
|
||||
// Update Compass
|
||||
$('div#compass .pointer').css('-webkit-transform', 'rotate(' + (SENSOR_DATA.kinematicsZ) + 'deg)');
|
||||
$('div#compass .value').html(SENSOR_DATA.kinematicsZ + '°');
|
||||
|
||||
// Request new data
|
||||
send_message(MSP_codes.MSP_ATTITUDE, MSP_codes.MSP_ATTITUDE);
|
||||
send_message(MSP_codes.MSP_RAW_GPS, MSP_codes.MSP_RAW_GPS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue