mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-31 13:13:44 +08:00
Malibu Buttons
This commit is contained in:
@@ -27,9 +27,8 @@ def create_buttons(packer, bus, idx, button):
|
||||
def create_buttons_malibu_cancel(bus, phase):
|
||||
# Malibu Hybrid CC cancel frames use a 4-value pattern in the last 2 bytes.
|
||||
data = bytearray(7)
|
||||
data[3] = 0x01 # ACCAlwaysOne
|
||||
data[3] = 0x41 # ACCAlwaysOne
|
||||
data[4] = 0x00
|
||||
# Observed cancel payloads (bus 0/130): 00 00 00 01 00 60 AF / 65 9E / 6A 8D / 6F 7C
|
||||
cancel_bytes = (0x60, 0xAF, 0x65, 0x9E, 0x6A, 0x8D, 0x6F, 0x7C)
|
||||
idx = (phase % 4) * 2
|
||||
data[5] = cancel_bytes[idx]
|
||||
|
||||
Reference in New Issue
Block a user