mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
Update jquery.flightindicators.js
This commit is contained in:
parent
3ed04866f6
commit
abbfe1d763
1 changed files with 2 additions and 1 deletions
|
@ -65,6 +65,7 @@
|
||||||
|
|
||||||
// Private methods
|
// Private methods
|
||||||
function _setRoll(roll){
|
function _setRoll(roll){
|
||||||
|
roll *= -1;
|
||||||
placeholder.each(function(){
|
placeholder.each(function(){
|
||||||
$(this).find('div.instrument.attitude div.roll').css('transform', 'rotate('+roll+'deg)');
|
$(this).find('div.instrument.attitude div.roll').css('transform', 'rotate('+roll+'deg)');
|
||||||
});
|
});
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
if(pitch>constants.pitch_bound){pitch = constants.pitch_bound;}
|
if(pitch>constants.pitch_bound){pitch = constants.pitch_bound;}
|
||||||
else if(pitch<-constants.pitch_bound){pitch = -constants.pitch_bound;}
|
else if(pitch<-constants.pitch_bound){pitch = -constants.pitch_bound;}
|
||||||
placeholder.each(function(){
|
placeholder.each(function(){
|
||||||
$(this).find('div.instrument.attitude div.roll div.pitch').css('top', pitch*0.7 + '%');
|
$(this).find('div.instrument.attitude div.roll div.pitch').css('top', -pitch*0.7 + '%');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue