Class StatesPacket

java.lang.Object
com.marswars.proxy_server.StatesPacket
All Implemented Interfaces:
Packet

public abstract class StatesPacket extends Object implements Packet
Packet handler for swerve drive module state data. Provides functionality to parse incoming packets containing the current state of all swerve modules.
  • Field Details

  • Constructor Details

    • StatesPacket

      public StatesPacket()
  • Method Details

    • updateData

      public static StatesPacket.ModuleStatesData updateData(byte[] buffer)
      Parses module states packet data from a received byte buffer. Extracts timestamp and all swerve module states from the buffer.
      Parameters:
      buffer - the byte buffer containing the packet data
      Returns:
      ModuleStatesData object with parsed information