Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Anyone done a QP-nano state machine framework with Teensy 3.2?

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    6

    Anyone done a QP-nano state machine framework with Teensy 3.2?

    I've gotten interested in the QP framework to implement a more complex state machine. Reading through the QP lit doesn't suggest it's possible to target a T3.2. https://www.state-machine.com/arduino/ Anyone out there done that and what does it take?

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,648
    Not sure what it is useful for.. I read a bit about it.. I think it's way easier, more flexible and better to write a few line of c (++) - code (and I don't need to license anything or worry about updates and if it still exists in some years)

  3. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    6
    Quote Originally Posted by Frank B View Post
    Not sure what it is useful for.. I read a bit about it.. I think it's way easier, more flexible and better to write a few line of c (++) - code (and I don't need to license anything or worry about updates and if it still exists in some years)
    Thanks. I was just looking for something that looked robust and could grow or handle anything else that came along. I ended up doing pretty much what you suggest with the help of the Automaton Timer Machine and then managed state transitions myself.

  4. #4
    Windows is event driven and i have often wondered if a microprocessor could operate this way

    my concern is a kernel/app will end up running to recreate a event driven environment but in fact it is just adding a main loop and hiding it from the programmer

    a arduino does not have multiple threads - so it must have a main loop ?

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    8,792
    Windows was event driven before single core Pentiums.

    Arduino basically/literally runs a while(1) from main(). The while(1) just calls loop() over and over - and to handle serialEvent() processing also calls yield() in each loop as well..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •