{"action":"created","issue":{"url":"https://api.github.com/repos/opentx/opentx/issues/2761","labels_url":"https://api.github.com/repos/opentx/opentx/issues/2761/labels{/name}","comments_url":"https://api.github.com/repos/opentx/opentx/issues/2761/comments","events_url":"https://api.github.com/repos/opentx/opentx/issues/2761/events","html_url":"https://github.com/opentx/opentx/issues/2761","id":102879409,"number":2761,"title":"Sticky Duration + And","user":{"login":"pinkywafer","id":8636233,"avatar_url":"https://avatars.githubusercontent.com/u/8636233?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkywafer","html_url":"https://github.com/pinkywafer","followers_url":"https://api.github.com/users/pinkywafer/followers","following_url":"https://api.github.com/users/pinkywafer/following{/other_user}","gists_url":"https://api.github.com/users/pinkywafer/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkywafer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkywafer/subscriptions","organizations_url":"https://api.github.com/users/pinkywafer/orgs","repos_url":"https://api.github.com/users/pinkywafer/repos","events_url":"https://api.github.com/users/pinkywafer/events{/privacy}","received_events_url":"https://api.github.com/users/pinkywafer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-24T20:02:19Z","updated_at":"2015-08-25T23:30:28Z","closed_at":"2015-08-25T22:49:18Z","body":"I remember this being discussed before in #1646 back before the 2.0.10 release.\r\nThe sticky is now turned on by V1, and off by V2 and the AND only affects the whole LS switch, not the sticky, so for example\r\nL1: Sticky  SHv  SHv  SA\r\nafter SH has been pressed once, SA will turn the LS on and off\r\nbut with duration, the sticky is reset also, so the above behaviour changes the AND (SA) will no longer trigger the LS as the sticky part has been reset.  I can't see the point of duration resetting the sticky, as in that case ie:\r\nL1: Sticky SHv  SHv     duration 0.5\r\nwith current behaviour, the LS is turned on by the switch and off by the duration.  It cannot be turned off by the V2 switch ever, as duration keeps the switch on, so a sticky is not relevant, as the exact same behaviour can be found from:\r\nL1: AND SHv SHv   duration 0.5\r\nand also from:\r\nL1: OR  SHv SHv  duration 0.5\r\n\r\nAny thoughts please?"},"comment":{"url":"https://api.github.com/repos/opentx/opentx/issues/comments/134769975","html_url":"https://github.com/opentx/opentx/issues/2761#issuecomment-134769975","issue_url":"https://api.github.com/repos/opentx/opentx/issues/2761","id":134769975,"user":{"login":"fraternl","id":8692856,"avatar_url":"https://avatars.githubusercontent.com/u/8692856?v=3","gravatar_id":"","url":"https://api.github.com/users/fraternl","html_url":"https://github.com/fraternl","followers_url":"https://api.github.com/users/fraternl/followers","following_url":"https://api.github.com/users/fraternl/following{/other_user}","gists_url":"https://api.github.com/users/fraternl/gists{/gist_id}","starred_url":"https://api.github.com/users/fraternl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraternl/subscriptions","organizations_url":"https://api.github.com/users/fraternl/orgs","repos_url":"https://api.github.com/users/fraternl/repos","events_url":"https://api.github.com/users/fraternl/events{/privacy}","received_events_url":"https://api.github.com/users/fraternl/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T23:30:28Z","updated_at":"2015-08-25T23:30:28Z","body":"I want to create a reset of \"Cnsp\" when the battery's voltage is more than 12.5V, but after that reset is given, it shouldn't do that anymore.\r\nThe voltage might drop to 11V  for a moment and come back to 12.6\r\nThat's why I created the sticky\r\nOnly when the Voltage drops to a certain low, the Cnsp can get a reset again if it reaches 12.6V\r\n\r\nI can then use the persistent option for Consumption\r\nI think this would do it for a 3S batterypack\r\n\r\nL1 a>x Vfas 12.5  delay 3s\r\nL2 a<x Vfas 10.5   delay 3s\r\nL3 Sticky L1 L2\r\nL4 Edge [00:<<] L1"}}