SourceForge has been redesigned. Learn more.
Close

#6 innacurate timer v34

closed-works-for-me
Interface (10)
5
2010-09-28
2010-09-27
hwhacker
No

Man, you must hate me by now :D. Clock runs irregularly, span between seconds lasts about 1-4 real seconds. Radio timer 35 seconds vs real time 1 minute. Timer set as allways on, I wasnt moving sticks while measuring :)

Discussion

  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27

    You are totally wrong! I like You the most of all users. I know that You use my software, because You find that error.. Thanks Your posts, my software can be better.

     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27
    • status: open --> open-accepted
     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27

    I'm not observing that behaviour. But in Your last model config You attached, You have set state machine rule (6) to:
    TCycle Swi6 < 000 clock nr:0

    But this cycle clock over 400 x per second.
    Probably You want to set it like this:
    TCycle SwT6 < 000 clock nr:0

    then it cycle clock only once per switch move (SwT is -100 if switch change state from 100 to - 100, 0 if no change and 100 if change is from -100 to 100)

     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27
    • status: open-accepted --> open-works-for-me
     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27
    • assigned_to: nobody --> rafit77
     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27

    My "vision" of Your model config :)

     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27

    Thanks this post, I was able to track other bug - during state machine rule delete, mixer one can be duplicated and the other one deleted. - fixed in v0.035.

    To stick into this topic, I attached my version of Your config file. I don't use virtual switch for throttle cut, corrected issue with timer (now can be stop and run again with switch). I add an extra future, instead of using extra switch for timer reset, I used timer Tim0 (decreased every 1/10 s) to implement clock reset and hold after holding switch over 3 second (2900ms to be exact).

     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-27
    • status: open-works-for-me --> closed-works-for-me
     
  • Nobody/Anonymous

    Thanks, what a honour :).

    So, basically timer was being cycled very fast by wrong switch configuration? I had no idea what was difference between Swi and SwT, now I know (hopefully) :)

    I use that throttle cut (lock) since my hand got very intimate with propeller :D

    That 3-sec-holding-switch feature is very cool, as trainer switch is spring loaded.

    Little OfftTopic, PPM output is working? I used to connect TX with pc simulator via ppm->usb interface with Atmega8, this one http://vusb.wikidot.com/project:ppm-rc-to-usb-interface (hovewer, older version - without transistor switch at the ppm input)

    I'll check config file and v35 right after I got home from work.

    Thanks!

     
  • hwhacker

    hwhacker - 2010-09-28
    • status: closed-works-for-me --> open-works-for-me
     
  • hwhacker

    hwhacker - 2010-09-28

    I forgot to log in :)

     
  • Rafal Tomczak

    Rafal Tomczak - 2010-09-28
    • status: open-works-for-me --> closed-works-for-me