Skip to content

Commit

Permalink
Update Setpoint Weight Header Terms
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryKeeble committed Sep 9, 2016
1 parent 8f1cfa3 commit 842f76f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -609,11 +609,11 @@ <h5 class="modal-title-craft"></h5>
</thead>
<tbody>
<tr>
<th colspan="2">Setpoint Weight</th>
<th colspan="2">Weights</th>
<th colspan="2">Acceleration Limit</th>
</tr>
<tr>
<td name="ptermSetpointWeight" class="bf-only"><label>P-Term</label><input type="number" step="0.01" min="0" max="999" /></td>
<td name="ptermSRateWeight" class="bf-only"><label>P-Term</label><input type="number" step="0.01" min="0" max="999" /></td>
<td name="dtermSetpointWeight" class="bf-only"><label>D-Term </label><input type="number" step="0.01" min="0" max="999" /></td>
<td name="rateAccelLimit" class="bf-only"><label>Roll/Pitch Rate</label><input type="number" step="1" min="0" max="999" /></td>
<td name="yawRateAccelLimit" class="bf-only"><label>Yaw</label><input type="number" step="1" min="0" max="999" /></td>
Expand Down
2 changes: 1 addition & 1 deletion js/flightlog_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ var FlightLogParser = function(logData) {
case "dterm_filter_type":
case "pidAtMinThrottle":
case "itermThrottleGain":
case "ptermSetpointWeight":
case "ptermSRateWeight":
case "dtermSetpointWeight":
case "yawRateAccelLimit":
case "rateAccelLimit":
Expand Down
4 changes: 2 additions & 2 deletions js/header_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function HeaderDialog(dialog, onSave) {
{name:'dterm_filter_type' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'pidAtMinThrottle' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'itermThrottleGain' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'ptermSetpointWeight' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'ptermSRateWeight' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'dtermSetpointWeight' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'yawRateAccelLimit' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
{name:'rateAccelLimit' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
Expand Down Expand Up @@ -440,7 +440,7 @@ function HeaderDialog(dialog, onSave) {
setParameter('motor_pwm_rate' ,sysConfig.motor_pwm_rate,0);
renderSelect('dterm_filter_type' ,sysConfig.dterm_filter_type, FILTER_TYPE);
setParameter('itermThrottleGain' ,sysConfig.itermThrottleGain,2);
setParameter('ptermSetpointWeight' ,sysConfig.ptermSetpointWeight,2);
setParameter('ptermSRateWeight' ,sysConfig.ptermSRateWeight,2);
setParameter('dtermSetpointWeight' ,sysConfig.dtermSetpointWeight,2);
setParameter('yawRateAccelLimit' ,sysConfig.yawRateAccelLimit,0);
setParameter('rateAccelLimit' ,sysConfig.rateAccelLimit,0);
Expand Down

0 comments on commit 842f76f

Please sign in to comment.