Exemplo n.º 1
0
  def apply(self, c):

    hud_alert = get_hud_alerts(c.hudControl.visualAlert)

    can_sends = self.CC.update(c.enabled, self.CS, c.actuators,
                               c.cruiseControl.cancel, hud_alert)

    return can_sends
Exemplo n.º 2
0
  def apply(self, c):

    hud_alert = get_hud_alerts(c.hudControl.visualAlert, c.hudControl.audibleAlert)

    self.CC.update(self.sendcan, c.enabled, self.CS, c.actuators,
                   c.cruiseControl.cancel, hud_alert)

    return False
Exemplo n.º 3
0
    def apply(self, c, perception_state=log.Live20Data.new_message()):

        hud_alert = get_hud_alerts(c.hudControl.visualAlert,
                                   c.hudControl.audibleAlert)

        self.CC.update(self.sendcan, c.enabled, self.CS, c.actuators,
                       c.cruiseControl.cancel, hud_alert)

        return False
Exemplo n.º 4
0
    def apply(self, c):

        hud_alert = get_hud_alerts(c.hudControl.visualAlert)

        enable = 0 if self.turning_indicator_alert or self.low_speed_alert else c.enabled

        can_sends = self.CC.update(enable, self.CS, c.actuators,
                                   c.cruiseControl.cancel, hud_alert)

        return can_sends