@antheas As long as I am doing this right, this in theory is what you need to do to reset the calibr

@antheas As long as I am doing this right, this in theory is what you need to do to reset the calibration on the Ally as long as the device is accepting it. Following how the other commands are ran inside of HHD, I ran the commands after switching to gamepad mode and everything appears to still be the same on my device.

I have been looking at the calibration section too, and the most annoying part is it making a checksum and that looks like a pain to translate to Python. I will probably give it another look later but I'm done for now lol. But other than that checksum, at first glance it looks like it is mostly just a bunch of numbers in a buffer.

I just figured I would try tackling how to reset the calibration before firing a bunch of calibration numbers that might be a problem lol

CALIBRATE_JOYSTICK_RESET_XY_LEFT = buf(
    [
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x02, # Packet Length
        0x02, # Reset Command
        0x01, # xpad_axis_xy_left
        
        # End Calibration
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x01, # Length
        0x03, # Set
    ]
)

CALIBRATE_JOYSTICK_RESET_XY_RIGHT = buf(
    [
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x02, # Packet Length
        0x02, # Reset Command
        0x02, # xpad_axis_xy_right
        
        # End Calibration
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x01, # Length
        0x03, # Set
    ]
)

CALIBRATE_JOYSTICK_RESET_Z_LEFT = buf(
    [
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x02, # Packet Length
        0x02, # Reset Command
        0x03, # xpad_axis_z_left

        # End Calibration
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x01, # Length
        0x03, # Set
    ]
)

CALIBRATE_JOYSTICK_RESET_Z_RIGHT = buf(
    [
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x02, # Packet Length
        0x02, # Reset Command
        0x04, # xpad_axis_z_right

        # End Calibration
        0x5A, # FEATURE_KBD_REPORT_ID
        0xD1,
        0x0D, # xpad_cmd_set_calibration
        0x01, # Length
        0x03, # Set
    ]
)
Was this page helpful?