{"action":"closed","issue":{"url":"https://api.github.com/repos/opentx/opentx/issues/2545","labels_url":"https://api.github.com/repos/opentx/opentx/issues/2545/labels{/name}","comments_url":"https://api.github.com/repos/opentx/opentx/issues/2545/comments","events_url":"https://api.github.com/repos/opentx/opentx/issues/2545/events","html_url":"https://github.com/opentx/opentx/issues/2545","id":96739219,"number":2545,"title":"Default resolution of RxBat is 1 decimal","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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T06:01:20Z","updated_at":"2015-07-23T12:48:29Z","closed_at":"2015-07-23T12:48:29Z","body":"Default resolution of RxBat is 1 decimal\r\nProbably not a bug, but intended thought over and intended\r\n\r\nIn some of my DLG's I fly with 1S and created these logical switches to sound either a \"low battery\" or a \"critical battery\"\r\n\r\nL1 (RxBt < 3.7 ) AND !L2 Delay (2s)\r\nL2 RxBt < 3.6 Delay (2s)\r\n\r\nThe step between these 2 is 0.1V which is probably fine.\r\nI initially wanted that 3.6V a bit closer to the 3.7V.\r\nI am aware that the precision of the sensor is not that accurate, but the resolution is higher than 0,1V\r\nIsn't it 13,2/255 = 0,051V ?\r\n\r\nThe measured sample can be either 3,57, 3.62, 3.67\r\nThis means there are 2 steps between them. I would prefer start with only 1 step between \"low\" and \"critical\", but maybe in practice it is better this way (with 2 steps). The next step is 3.5V however and that doesn't feel good (4 steps).\r\n\r\nChanging it to 2 decimals does give the impression the resolution is much higher and might encourage some to have them so close they are actually the same. In which case the current 1 position is better.\r\n\r\nIt's probably just fine, but I would like to know if I can just change the resolution in double precision and set it to 3.63 and 3.70 and will it behave like intend to?\r\n\r\n\r\nAnd I would also like to know if the decision to make it 1 precision is taken with the same considerations as I wrote before....\r\n\r\n"}}