def create_accdata(packer, enabled, acc_gas, acc_brk, acc_decel, acc_spd, stopstat):
  """Creates a CAN message for ACCDATA"""
  
  values = {
    "AccBrkTot_A_Rq": acc_brk,
    "AccPrpl_A_Pred": acc_gas, 
    "AccPrpl_A_Rq": acc_gas, 
    "AccVeh_V_Trg": acc_spd, 
    "AccBrkPrchg_B_Rq": acc_decel, 
    "AccBrkDecel_B_Rq": acc_decel,
    "Cmbb_B_Enbl": 1,
    "AccStopStat_B_Rq": stopstat,
  }
  return packer.make_can_msg("ACCDATA", 0, values)