JP
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/V3Qlhdgf4WwJ.
To post to this group, send email to ioio-...@googlegroups.com.
To unsubscribe from this group, send email to ioio-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ioio-users?hl=en.
Best regards,
JP
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/GjWAEXppyqEJ.
pulse.getDuration()
to measuring the duration between two pulses (e.g. the time between two consecutive positive flanks). Correct?
Best regards,
JP
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/pI-TZJc43PQJ.
There's no contradiction: you can measure period as short as 20us post scaling. You'll get updates no more than 200 times a sec. That is, not each and every pulse is reported. The idea is to measure their width and not their count.
If you use a double precision counter you don't have to worry too much. On a 2MHz clock it'll still be able to measure 2000 seconds before roll over so you can easily handle this in your app and treat it as 0 speed possibly ignoring the next pulse. If you block waiting for a pulse, you can interrupt this thread safely anytime if you need to. It will be unblocked once your app exits or the IOIO is disconnected.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/UTiMQzTb8FkJ.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.
Can you share the code? Please strip it down to the bare minimum to make reading it easier.
After having tested with full patience, I find out in fact there is output pulse at pin 5 but 1 min after having run the program. Is it normal that PulseInput sentence make a long delay like this?
Siqi
--
You shouldn't have to in the general case.
I solved the problem by adding a thread. Thank you for response!
--
frontInput = ioio.openPulseInput(new DigitalInput.Spec(35, DigitalInput.Spec.Mode.PULL_UP),PulseInput.ClockRate.RATE_2MHz,PulseInput.PulseMode.POSITIVE, false);
You received this message because you are subscribed to a topic in the Google Groups "ioio-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ioio-users/QfQJBmPPF_s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ioio-users+...@googlegroups.com.