{"action":"created","issue":{"url":"https://api.github.com/repos/opentx/opentx/issues/2756","labels_url":"https://api.github.com/repos/opentx/opentx/issues/2756/labels{/name}","comments_url":"https://api.github.com/repos/opentx/opentx/issues/2756/comments","events_url":"https://api.github.com/repos/opentx/opentx/issues/2756/events","html_url":"https://github.com/opentx/opentx/issues/2756","id":102666928,"number":2756,"title":"Logical switch with calculated sensor not working properly","user":{"login":"lichtl","id":1228155,"avatar_url":"https://avatars.githubusercontent.com/u/1228155?v=3","gravatar_id":"","url":"https://api.github.com/users/lichtl","html_url":"https://github.com/lichtl","followers_url":"https://api.github.com/users/lichtl/followers","following_url":"https://api.github.com/users/lichtl/following{/other_user}","gists_url":"https://api.github.com/users/lichtl/gists{/gist_id}","starred_url":"https://api.github.com/users/lichtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lichtl/subscriptions","organizations_url":"https://api.github.com/users/lichtl/orgs","repos_url":"https://api.github.com/users/lichtl/repos","events_url":"https://api.github.com/users/lichtl/events{/privacy}","received_events_url":"https://api.github.com/users/lichtl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opentx/opentx/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/opentx/opentx/labels/Radio%20Firmware","name":"Radio Firmware","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/opentx/opentx/milestones/27","html_url":"https://github.com/opentx/opentx/milestones/OpenTX%202.1.2","labels_url":"https://api.github.com/repos/opentx/opentx/milestones/27/labels","id":1244970,"number":27,"title":"OpenTX 2.1.2","description":"","creator":{"login":"bsongis","id":5603504,"avatar_url":"https://avatars.githubusercontent.com/u/5603504?v=3","gravatar_id":"","url":"https://api.github.com/users/bsongis","html_url":"https://github.com/bsongis","followers_url":"https://api.github.com/users/bsongis/followers","following_url":"https://api.github.com/users/bsongis/following{/other_user}","gists_url":"https://api.github.com/users/bsongis/gists{/gist_id}","starred_url":"https://api.github.com/users/bsongis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsongis/subscriptions","organizations_url":"https://api.github.com/users/bsongis/orgs","repos_url":"https://api.github.com/users/bsongis/repos","events_url":"https://api.github.com/users/bsongis/events{/privacy}","received_events_url":"https://api.github.com/users/bsongis/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":25,"state":"open","created_at":"2015-08-07T05:45:58Z","updated_at":"2015-08-25T22:47:06Z","due_on":"2015-08-30T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-08-23T22:29:07Z","updated_at":"2015-08-26T03:00:51Z","closed_at":null,"body":"Model: Taranis X9E\r\nFirmware: opentx-taranisx9e-timer3-noheli-lua-mixersmon-ppmus-en-2.1.2N427.bin\r\n\r\nI'm using a calculated Sensor to report the lowest cell (coming from my Cleanflight Naze). For reporting I want to use a logical switch using a<x which don't seem to work (L2 active all the time).\r\n\r\nI've tried multiple settings and L2 only deactivate once I set x to 0 or into negative. Please let me know if you need any more data\r\n\r\n![img_20150823_234303](https://cloud.githubusercontent.com/assets/1228155/9430452/a0b50e38-49f6-11e5-93df-b2bc00e98943.jpg)\r\n![img_20150823_234333](https://cloud.githubusercontent.com/assets/1228155/9430453/a0bd142a-49f6-11e5-9eb5-6d17ea08a70d.jpg)\r\n![img_20150823_234444](https://cloud.githubusercontent.com/assets/1228155/9430454/a0bfadb6-49f6-11e5-8985-c29c7ca0b617.jpg)\r\n![img_20150824_001435](https://cloud.githubusercontent.com/assets/1228155/9430455/a0bfe682-49f6-11e5-8c8f-3e9284bb3593.jpg)\r\n\r\nConfig file. Please rename to config.eepe\r\n![config eepe](https://cloud.githubusercontent.com/assets/1228155/9430464/e672ad36-49f6-11e5-97b8-d485088b1496.jpg)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opentx/opentx/issues/comments/134803390","html_url":"https://github.com/opentx/opentx/issues/2756#issuecomment-134803390","issue_url":"https://api.github.com/repos/opentx/opentx/issues/2756","id":134803390,"user":{"login":"AndreasAusD","id":8605512,"avatar_url":"https://avatars.githubusercontent.com/u/8605512?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasAusD","html_url":"https://github.com/AndreasAusD","followers_url":"https://api.github.com/users/AndreasAusD/followers","following_url":"https://api.github.com/users/AndreasAusD/following{/other_user}","gists_url":"https://api.github.com/users/AndreasAusD/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasAusD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasAusD/subscriptions","organizations_url":"https://api.github.com/users/AndreasAusD/orgs","repos_url":"https://api.github.com/users/AndreasAusD/repos","events_url":"https://api.github.com/users/AndreasAusD/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasAusD/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T03:00:51Z","updated_at":"2015-08-26T03:00:51Z","body":"I have a similar problem : two voltage sensors, one FLVSS giving me a total voltage \"FLVS\" and a JLog 2.6 connected to a Kontronik Jive giving me a total Voltage \"Vfas\" \r\n\r\nCalculated sensor \"diff\" which adds \"FLVS\" and \"-Vfas and a logical switch on \"|a|>x\" which never changes, no matter what value x has\r\n\r\nValues differ by -0,07V and 0,03V when both connected and go up to 15V when only the FLVSS is connected to the battery\r\n\r\nTested on a 9xD with the release version of 2.1.1, no nightly build\r\nall configuration done on the radio"}}