DU: Fix EPRs on ECAM
This commit is contained in:
parent
a7b11ec8a0
commit
1e1bc63023
1 changed files with 13 additions and 10 deletions
|
@ -204,28 +204,30 @@ var canvas_upperECAM = {
|
|||
];
|
||||
|
||||
obj.update_items_fadec_powered_epr = [
|
||||
props.UpdateManager.FromHashValue("EPR_1", 0.01, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPR_1", 0.0001, func(val) {
|
||||
obj["EPR1-needle"].setRotation((val + 90) * D2R);
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("EPR_2", 0.01, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPR_2", 0.0001, func(val) {
|
||||
obj["EPR2-needle"].setRotation((val + 90) * D2R);
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("EPR_actual_1", nil, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPR_actual_1", 0.0001, func(val) {
|
||||
epr1 = val + 0.0005;
|
||||
obj["EPR1"].setText(sprintf("%1.0f", math.floor(epr1)));
|
||||
obj["EPR1-decimal"].setText(sprintf("%03d", (val - int(val) + 0.0005) * 1000));
|
||||
obj["EPR1-decimal"].setText(sprintf("%03d", (epr1 - int(epr1)) * 1000));
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("EPR_actual_2", nil, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPR_actual_2", 0.0001, func(val) {
|
||||
epr2 = val + 0.0005;
|
||||
obj["EPR2"].setText(sprintf("%1.0f", math.floor(epr2)));
|
||||
obj["EPR2-decimal"].setText(sprintf("%03d", (val - int(val) + 0.0005) * 1000));
|
||||
obj["EPR2-decimal"].setText(sprintf("%03d", (epr2 - int(epr2)) * 1000));
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("EPR_lim", 0.005, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPR_lim", 0.0001, func(val) {
|
||||
obj["EPR1-ylim"].setRotation((val + 90) * D2R);
|
||||
obj["EPR2-ylim"].setRotation((val + 90) * D2R);
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("EPRthr_1", 0.005, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPRthr_1", 0.0001, func(val) {
|
||||
obj["EPR1-thr"].setRotation((val + 90) * D2R);
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("EPRthr_2", 0.005, func(val) {
|
||||
props.UpdateManager.FromHashValue("EPRthr_2", 0.0001, func(val) {
|
||||
obj["EPR2-thr"].setRotation((val + 90) * D2R);
|
||||
}),
|
||||
];
|
||||
|
@ -284,8 +286,9 @@ var canvas_upperECAM = {
|
|||
obj["N1Lim-mode"].setText(sprintf("%s", val));
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("eprLimit", 0.0005, func(val) {
|
||||
eprLim = val + 0.0005;
|
||||
obj["EPRLim"].setText(sprintf("%1.0f", math.floor(eprLim)));
|
||||
obj["EPRLim-decimal"].setText(sprintf("%03d", (val - int(val) + 0.0005) * 1000));
|
||||
obj["EPRLim-decimal"].setText(sprintf("%03d", (eprLim - int(eprLim)) * 1000));
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("n1Limit", 0.01, func(val) {
|
||||
obj["N1Lim"].setText(sprintf("%s", math.floor(val + 0.05)));
|
||||
|
|
Loading…
Reference in a new issue