1
0
Fork 0
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:
cTn 2013-04-11 20:03:44 +02:00
parent a8c76cf278
commit e1c1522da5
5 changed files with 109 additions and 2 deletions

View file

@ -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);