What would a use case be for using whileActiveContinuous instead of whileActive or whenPressed?
whileActiveContinuous are exactly the same thing.
whileActiveContinous see the code.
I don’t see a
whileActive. What class are you looking at?
whenPressed differs from
whileHeld in that it only runs the command once and doesn’t interrupt it.
whileHeld runs the command over and over again if it ends while the button is still held and interrupts when the button is released.
I suggest carefully reading this page, and then reading it again. It took me a couple times to catch the nuances.
ah. I missed the reschedule-if-interrupted of whileActiveContinuous.
whileActive is a typo. I meant whenActive.
Thanks for the point to the specific page in the docs.
No worries, I missed that rescheduled behavior too. Luckily the CD community is awesome.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.