Skip to content

Commit

Permalink
fix default case, update rescue throttle PIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ctzsnooze committed Aug 31, 2022
1 parent 91f355d commit 428c363
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/flightlog_fields_presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,13 @@ function FlightLogFieldPresenter() {
'debug[2]':'Failure code',
'debug[3]':'Failure timers',
};
DEBUG_FRIENDLY_FIELD_NAMES.GPS_RESCUE_THROTTLE_PID = {
'debug[all]':'GPS Rescue throttle PIDs',
'debug[0]':'Throttle P',
'debug[1]':'Throttle D',
'debug[2]':'Altitude',
'debug[3]':'Target altitude',
};
} else if (semver.gte(firmwareVersion, '4.3.0')) {
DEBUG_FRIENDLY_FIELD_NAMES.FEEDFORWARD = {
'debug[all]':'Feedforward [roll]',
Expand Down Expand Up @@ -1181,6 +1188,8 @@ function FlightLogFieldPresenter() {
case 'debug[2]': // velocity to home cm/s
case 'debug[3]': // velocity target cm/s
return (value / 100).toFixed(1) + 'm/s';
default:
return value.toFixed(0);
}
case 'GPS_RESCUE_HEADING':
switch (fieldName) {
Expand All @@ -1191,6 +1200,8 @@ function FlightLogFieldPresenter() {
case 'debug[2]': // Attitude in degrees * 10
case 'debug[3]': // Angle to home in degrees * 10
return (value / 10).toFixed(1) + 'deg';
default:
return value.toFixed(0);
}
case 'GPS_RESCUE_TRACKING':
switch (fieldName) {
Expand Down

0 comments on commit 428c363

Please sign in to comment.