Programing Motor Run-time woes

77 views
Skip to first unread message

Michael Sowatzke

unread,
Dec 19, 2017, 5:11:18 PM12/19/17
to Blockly
   Our FTC Robotics team had to switch from using Java in Android Studio to using Blockly.  It all works great, but now they can no longer trigger a DC motor to run for a set time.  If the color sensor sees that a ball is blue, they want the motors to start and run for a set time.  

   In Java this was as easy as Motor power ____, time _____

   Can anyone help us figure this out? Do we need some crazy loop/wait/sleep combo?  Or can we do a simple runtime command?

     Thank you in advance for your time!

Andrew n marshall

unread,
Dec 19, 2017, 5:20:17 PM12/19/17
to blo...@googlegroups.com
Hi Michael,

I'm not sure what app you're using, but the motor control in that Blockly app is not anything we've written. We are the developers of the Blockly library and code editor, the snap-together puzzle pieces on screen you're using to define your program. The editor is used in many apps, some robotics related, many not. We don't write any of those apps.

It seems like you are using one of the many apps written with blockly embedded, but your issue sounds like it has more to do with how the code is run after it is output from the Blockly editor.  You should seek out the developers or a support forum specific to that app.


Best of luck with your team!


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Liz Looney

unread,
Dec 19, 2017, 6:34:52 PM12/19/17
to blo...@googlegroups.com
I wrote the Blockly stuff for FTC Robotics. The best place to ask your question is on the Blocks Programing section of the FTC Forum. https://ftcforum.usfirst.org/forum/ftc-technology/blocks-programming?212-Blocks-Programming=

-Liz Looney

Reply all
Reply to author
Forward
0 new messages