Bitwise AND operators , interpreting Engine Status
Posted: Thu Oct 01, 2020 3:52 pm
So, I'd like to map a channel for my clutch switch which is wired to my megasquirt.
The clutch switch is wired to "Launch in" so when that is active my clutch is depressed.
"Launch in" is located in Engine Status 2, status1-8 These bitfield variables is a combination of binary bits about engine status. These are used to drive various
status indicators.
This is broadcast on decimal ID 1530 with an offset of 1
This thread explains something that I don't understand. Bitwise AND operators. It also explains how this bit field works.
https://www.msextra.com/forums/viewtopi ... 00&t=73499
More explaining, http://www.msextra.com/doc/pdf/html/Meg ... 5-136.html
I can easily map engine status 2 into Racecapture, my question is, using lua how would I evaluate the integer sent to see if "Launch in" is active?
The clutch switch is wired to "Launch in" so when that is active my clutch is depressed.
"Launch in" is located in Engine Status 2, status1-8 These bitfield variables is a combination of binary bits about engine status. These are used to drive various
status indicators.
This is broadcast on decimal ID 1530 with an offset of 1
This thread explains something that I don't understand. Bitwise AND operators. It also explains how this bit field works.
https://www.msextra.com/forums/viewtopi ... 00&t=73499
More explaining, http://www.msextra.com/doc/pdf/html/Meg ... 5-136.html
I can easily map engine status 2 into Racecapture, my question is, using lua how would I evaluate the integer sent to see if "Launch in" is active?