From 8cd24089d9ca7e04736109708a48becdb2f688ce Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Thu, 14 Dec 2023 17:15:57 -0700 Subject: [PATCH] Updated readme. --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 395fef5..3e870f6 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,15 @@ Known States: - 0x61 : driver skills - 0x51 : auton skills -All of the protocol reversing has been done with 1 brain & 1 controller, so any unique fields are constant and will need to be updated. \ No newline at end of file +From this the flags are thus: +0: ? - always 1 +1: ? - always 0 +2: ? - always 0 +3: ? - always 0 +4-5: mode - 0 for paused, 1 for auton, 2 for driver, +6: ? - always 1 +7: 0 for skills - 1 for competition + +The field control sequence(aka when the controller sends 0xA7) can be responded to with either a 0x02 ACK packet to acknowledge that the current values are correct, or a 0x53 packet to send new values. However, a 0x02 must be sent at least every 20 packets else the controller will restart the connect sequence. + +All of the protocol reversing has been done with 1 brain & 1 controller, so any unique fields are constant and will need to be updated.