Skip to content

Commit ad93a3b

Browse files
authored
Update parameters (projecthorus#39)
1 parent 9f5e5b4 commit ad93a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@ function addPosition(position) {
25982598
// calculate vertical rate
25992599
var rate = (position.gps_alt - vehicle.positions_alts[search_matches.length-1]) / dtt;
26002600
if (!isNaN(rate) && isFinite(rate)) {
2601-
vehicle.ascent_rate = 0.5 * rate + 0.5 * vehicle.ascent_rate;
2601+
vehicle.ascent_rate = 0.2 * rate + 0.8 * vehicle.ascent_rate;
26022602
}
26032603

26042604
// calculate horizontal rate
@@ -2611,7 +2611,7 @@ function addPosition(position) {
26112611
// calculate vertical rate
26122612
var rate = (position.gps_alt - vehicle.curr_position.gps_alt) / dt;
26132613
if (!isNaN(rate) && isFinite(rate)) {
2614-
vehicle.ascent_rate = 0.7 * rate + 0.3 * vehicle.ascent_rate;
2614+
vehicle.ascent_rate = 0.2 * rate + 0.8 * vehicle.ascent_rate;
26152615
}
26162616

26172617
// calculate horizontal rate

0 commit comments

Comments
 (0)