Phi: fix airspeed and heading display
round to integer instead of truncate
This commit is contained in:
parent
5a1a2a64a1
commit
d04bf9d849
1 changed files with 2 additions and 2 deletions
|
@ -46,11 +46,11 @@ define([
|
|||
});
|
||||
|
||||
this.headingTextAnimation = ko.pureComputed(function() {
|
||||
return sprintf.sprintf("%03d", self.heading());
|
||||
return sprintf.sprintf("%03d", Math.round(self.heading()));
|
||||
});
|
||||
|
||||
this.asiTextAnimation = ko.pureComputed(function() {
|
||||
return sprintf.sprintf("%3d", self.airspeed());
|
||||
return sprintf.sprintf("%3d", Math.round(self.airspeed()));
|
||||
});
|
||||
|
||||
this.altimeterThousandsTextAnimation = ko.pureComputed(function() {
|
||||
|
|
Loading…
Reference in a new issue