  
      ret.gas = cp.vl["ENGINE_DATA"]['PEDAL_GAS']
      ret.gasPressed = ret.gas > 0
  
      # LKAS is enabled at 52kph going up and disabled at 45kph going down
      if speed_kph > LKAS_LIMITS.ENABLE_SPEED:
        self.lkas_allowed = True
      elif speed_kph < LKAS_LIMITS.DISABLE_SPEED:
 
</s> remove     # CX-9 2017 Australia
 </s> add     # CX-9 2017 Australia - old CAM connector
    ret.leftBlindspot = cp.vl["BSM"]['LEFT_BS1'] == 1
    ret.rightBlindspot = cp.vl["BSM"]['RIGHT_BS1'] == 1

  
      ret.gas = cp.vl["ENGINE_DATA"]['PEDAL_GAS']
      ret.gasPressed = ret.gas > 0
  
    ret.leftBlindspot = cp.vl["BSM"]['LEFT_BS1'] == 1
    ret.rightBlindspot = cp.vl["BSM"]['RIGHT_BS1'] == 1

      # LKAS is enabled at 52kph going up and disabled at 45kph going down
      if speed_kph > LKAS_LIMITS.ENABLE_SPEED:
        self.lkas_allowed = True
      elif speed_kph < LKAS_LIMITS.DISABLE_SPEED:
keep keep keep add keep keep keep keep
 Mazda BSM (#1830)

* Mazda BSM support

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Add Mazda3 2017 and CX-9 2016 Fingerprints

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com> 
selfdrive/car/mazda/carstate.py