Skip to content

Commit 842f76f

Browse files
committed
Update Setpoint Weight Header Terms
1 parent 8f1cfa3 commit 842f76f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,11 @@ <h5 class="modal-title-craft"></h5>
609609
</thead>
610610
<tbody>
611611
<tr>
612-
<th colspan="2">Setpoint Weight</th>
612+
<th colspan="2">Weights</th>
613613
<th colspan="2">Acceleration Limit</th>
614614
</tr>
615615
<tr>
616-
<td name="ptermSetpointWeight" class="bf-only"><label>P-Term</label><input type="number" step="0.01" min="0" max="999" /></td>
616+
<td name="ptermSRateWeight" class="bf-only"><label>P-Term</label><input type="number" step="0.01" min="0" max="999" /></td>
617617
<td name="dtermSetpointWeight" class="bf-only"><label>D-Term </label><input type="number" step="0.01" min="0" max="999" /></td>
618618
<td name="rateAccelLimit" class="bf-only"><label>Roll/Pitch Rate</label><input type="number" step="1" min="0" max="999" /></td>
619619
<td name="yawRateAccelLimit" class="bf-only"><label>Yaw</label><input type="number" step="1" min="0" max="999" /></td>

js/flightlog_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ var FlightLogParser = function(logData) {
462462
case "dterm_filter_type":
463463
case "pidAtMinThrottle":
464464
case "itermThrottleGain":
465-
case "ptermSetpointWeight":
465+
case "ptermSRateWeight":
466466
case "dtermSetpointWeight":
467467
case "yawRateAccelLimit":
468468
case "rateAccelLimit":

js/header_dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function HeaderDialog(dialog, onSave) {
4343
{name:'dterm_filter_type' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
4444
{name:'pidAtMinThrottle' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
4545
{name:'itermThrottleGain' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
46-
{name:'ptermSetpointWeight' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
46+
{name:'ptermSRateWeight' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
4747
{name:'dtermSetpointWeight' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
4848
{name:'yawRateAccelLimit' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
4949
{name:'rateAccelLimit' , type:FIRMWARE_TYPE_BETAFLIGHT, min:3.0, max:999.9},
@@ -440,7 +440,7 @@ function HeaderDialog(dialog, onSave) {
440440
setParameter('motor_pwm_rate' ,sysConfig.motor_pwm_rate,0);
441441
renderSelect('dterm_filter_type' ,sysConfig.dterm_filter_type, FILTER_TYPE);
442442
setParameter('itermThrottleGain' ,sysConfig.itermThrottleGain,2);
443-
setParameter('ptermSetpointWeight' ,sysConfig.ptermSetpointWeight,2);
443+
setParameter('ptermSRateWeight' ,sysConfig.ptermSRateWeight,2);
444444
setParameter('dtermSetpointWeight' ,sysConfig.dtermSetpointWeight,2);
445445
setParameter('yawRateAccelLimit' ,sysConfig.yawRateAccelLimit,0);
446446
setParameter('rateAccelLimit' ,sysConfig.rateAccelLimit,0);

0 commit comments

Comments
 (0)