def joystick_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool) -> Alert:
    axes = sm['testJoystick'].axes
    (gb, steer) = (list(axes)[:2] if len(axes) else (0.0, 0.0))
    return Alert('Joystick Mode', f'Gas: {round((gb * 100.0))}%, Steer: {round((steer * 100.0))}%', AlertStatus.normal, AlertSize.mid, Priority.LOW, VisualAlert.none, AudibleAlert.none, 0.0, 0.0, 0.1)
def joystick_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool) -> Alert:
    axes = sm['testJoystick'].axes
    (gb, steer) = (list(axes)[:2] if len(axes) else (0.0, 0.0))
    return Alert('Joystick Mode', f'Gas: {round((gb * 100.0))}%, Steer: {round((steer * 100.0))}%', AlertStatus.normal, AlertSize.mid, Priority.LOW, VisualAlert.none, AudibleAlert.none, 0.0, 0.0, 0.1)