Basic Traffic Light System State Machine - Stateflow Tutorial

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 14

  • @jeanbikiembida5554
    @jeanbikiembida5554 3 года назад +2

    8:15 why during the simulation the programm doesn't respect the time value inside the after function ?

  • @meriemboulifa4619
    @meriemboulifa4619 3 года назад +1

    Hallo Hamed How do yo manage to configure the Lamps?

  • @createworld7075
    @createworld7075 4 года назад +2

    Would you call it a mealy or moore model?

    • @HamedAdefuwa
      @HamedAdefuwa  4 года назад +1

      I remember it like this, if the states themselves are empty then its a mealy machine since all the action must be happening in the transitions. For my lecturer he wasn't bothered about us mixing between the two since that's what most people do in industry anyways. Stateflow does have a cool feature that you can select a mealy or moore machine and then it'l tell you off for mixing the two types.
      So yh it's Moore machine lol

  • @glaboonjames4888
    @glaboonjames4888 2 года назад

    How can you may a description for traffic light in a algorithm

  • @Elmaxsivu
    @Elmaxsivu 3 года назад +1

    How can you go from STOP to PREPARE TO STOP?????? if its red, it jumps straight to green. from green to yellow and then red...

    • @HamedAdefuwa
      @HamedAdefuwa  3 года назад

      Here ruclips.net/video/iEtYcpRVdO0/видео.html
      Maybe things are different in the UK? We go from red to amber to green, then to amber then to red.
      'Jumping' from green to red seems a bit mad to me lol but whatever. Don't take it too serious mate, just design the state machine however you like. 🤣

    • @Jay-om8gr
      @Jay-om8gr 2 года назад

      yeah i was confused too

  • @spectrumbaguette3357
    @spectrumbaguette3357 7 месяцев назад

    Good video

  • @shahbazmomin786
    @shahbazmomin786 3 года назад +1

    Hi Hamed, Can you please make more videos on Stateflow ?

    • @HamedAdefuwa
      @HamedAdefuwa  3 года назад

      I would really like to but sadly i haven't used it for a couple months now. When I get the next opportunity to get back onto Stateflow I will do. Thanks for watching my vids, I appreciate it and sorry I can't help right now 😔

  • @bantyhole3438
    @bantyhole3438 3 года назад

    Stop state should be after prepare to stop state...( Go... Prepared to stop...Stop)

    • @HamedAdefuwa
      @HamedAdefuwa  3 года назад

      Yeah lol! Should really call the state Amber or Orange instead.

  • @glaboonjames4888
    @glaboonjames4888 2 года назад

    How can I make a description for traffic light and flowchart