    def update_canfd(self, cp, cp_cam):
      ret = car.CarState.new_message()
  
      if self.CP.carFingerprint in (EV_CAR | HYBRID_CAR):
        if self.CP.carFingerprint in EV_CAR:
          ret.gas = cp.vl["ACCELERATOR"]["ACCELERATOR_PEDAL"] / 255.
        else:
          ret.gas = cp.vl["ACCELERATOR_ALT"]["ACCELERATOR_PEDAL"] / 1023.
        ret.gasPressed = ret.gas > 1e-5
 
</s> remove     ret.cruiseState.available = True
    self.is_metric = cp.vl["CRUISE_BUTTONS_ALT"]["DISTANCE_UNIT"] != 1
    if not self.CP.openpilotLongitudinalControl:
      speed_factor = CV.KPH_TO_MS if self.is_metric else CV.MPH_TO_MS
 </s> add     # cruise state
    if self.CP.openpilotLongitudinalControl:
      # These are not used for engage/disengage since openpilot keeps track of state using the buttons
      ret.cruiseState.available = cp.vl["TCS"]["ACCEnable"] == 0
      ret.cruiseState.enabled = cp.vl["TCS"]["ACC_REQ"] == 1
      ret.cruiseState.standstill = False
    else: </s> remove       ret.cruiseState.speed = cp_cruise_info.vl["SCC_CONTROL"]["VSetDis"] * speed_factor
      ret.cruiseState.standstill = cp_cruise_info.vl["SCC_CONTROL"]["CRUISE_STANDSTILL"] == 1
 </s> add       ret.cruiseState.available = cp_cruise_info.vl["SCC_CONTROL"]["MainMode_ACC"] == 1
    self.is_metric = cp.vl["CRUISE_BUTTONS_ALT"]["DISTANCE_UNIT"] != 1
    speed_factor = CV.KPH_TO_MS if self.is_metric else CV.MPH_TO_MS

    def update_canfd(self, cp, cp_cam):
      ret = car.CarState.new_message()
  
    self.is_metric = cp.vl["CRUISE_BUTTONS_ALT"]["DISTANCE_UNIT"] != 1
    speed_factor = CV.KPH_TO_MS if self.is_metric else CV.MPH_TO_MS

      if self.CP.carFingerprint in (EV_CAR | HYBRID_CAR):
        if self.CP.carFingerprint in EV_CAR:
          ret.gas = cp.vl["ACCELERATOR"]["ACCELERATOR_PEDAL"] / 255.
        else:
          ret.gas = cp.vl["ACCELERATOR_ALT"]["ACCELERATOR_PEDAL"] / 1023.
        ret.gasPressed = ret.gas > 1e-5
keep keep add keep keep keep keep keep keep
 HKG CAN-FD: set cruise state available with car signal (#26812)

* HKG CAN-FD: set cruise state available with car signal

* Whoops

* Check this signal

* No should be in SCC_CONTROL

* use TCS

* add back

* match CAN

* think these are missing

Co-authored-by: Shane Smiskol <shane@smiskol.com> 
selfdrive/car/hyundai/carstate.py