def create_speed_command(packer, speed, trlraid, actlnocs, actlnocnt, actlqf, gear):
  """Creates a CAN message for the Ford Speed Command."""
  values = {
    "VehVTrlrAid_B_Avail": trlraid,
    "VehVActlEng_No_Cs": actlnocs,
    "VehVActlEng_No_Cnt": actlnocnt,
    "VehVActlEng_D_Qf": actlqf,
    "GearRvrse_D_Actl": gear,
    "Veh_V_ActlEng": speed,
  }
  return packer.make_can_msg("EngVehicleSpThrottle2", 2, values)