sparker256 / xchecklist

Automatically exported from code.google.com/p/xchecklist
MIT License
21 stars 6 forks source link

Can't combine lower/higher checks #3

Closed kbrandwijk closed 4 years ago

kbrandwijk commented 6 years ago

When using test/dataref:10:20, I can't combine those using &&.

This works:

sw_item:FLIGHT CONTROLS|CHECKED:sim/cockpit2/controls/yoke_roll_ratio:-0.9:0.9

This doesn't:

sw_item:FLIGHT CONTROLS|CHECKED:(sim/cockpit2/controls/yoke_roll_ratio:-0.9:0.9)&&(sim/cockpit2/controls/yoke_pitch_ratio)
KarlLeclerc commented 6 years ago

Kim,

You forgot to put the values in the second set of parenthesis. Also, you may want to check for the controls going in both directions, like below. Here’s one that I use frequently for helicopter checklists:

sw_item:CYCLIC|FREE & FULL TRAVEL:((sim/cockpit2/engine/actuators/cyclic_aileron_deg[0]:-9.0:9.0)||(sim/cockpit2/engine/actuators/cyclic_aileron_deg[0]:9.0:-9.0))&&((sim/cockpit2/engine/actuators/cyclic_elevator_deg[0]:-9.0:9.0)||(sim/cockpit2/engine/actuators/cyclic_elevator_deg[0]:9.0:-9.0))

Karl

On Sep 25, 2018, at 7:07 PM, Kim Brandwijk notifications@github.com wrote:

When using test/dataref:10:20, I can't combine those using &&.

This works:

sw_item:FLIGHT CONTROLS|CHECKED:sim/cockpit2/controls/yoke_roll_ratio:-0.9:0.9 This doesn't:

sw_item:FLIGHT CONTROLS|CHECKED:(sim/cockpit2/controls/yoke_roll_ratio:-0.9:0.9)&&(sim/cockpit2/controls/yoke_pitch_ratio) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sparker256/xchecklist/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AcxQozDlcEJpD3W_BeI0wFF9wMheSGqvks5uerctgaJpZM4W5oGN.

kbrandwijk commented 6 years ago

That was actually a copy-paste error, they were in there locally. I'll check again.