Skip to content

Commit

Permalink
Scale and display EZLANDING debug fields as percentages (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbolin authored Mar 2, 2024
1 parent d0437ed commit 12dfd2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/flightlog_fields_presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,8 @@ function FlightLogFieldPresenter() {
return value.toFixed(0);
case 'DSHOT_TELEMETRY_COUNTS':
return value.toFixed(0);
case 'EZLANDING':
return `${(value / 100.0).toFixed(2)} %`;
}
return value.toFixed(0);
}
Expand Down
7 changes: 7 additions & 0 deletions js/graph_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,13 @@ GraphConfig.load = function(config) {
default:
return getCurveForMinMaxFields(fieldName);
}
case 'EZLANDING':
return {
offset: -5000,
power: 1.0,
inputRange: 5000,
outputRange: 1.0,
};
}
}
// if not found above then
Expand Down

0 comments on commit 12dfd2b

Please sign in to comment.