Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: FTC Autonomous How to run 2 tasks at the same time (http://www.chiefdelphi.com/forums/showthread.php?t=140301)

susubha 14-12-2015 03:52

[FTC]: FTC Autonomous How to run 2 tasks at the same time
 
In the front of the robot we have flopper kind of thing to push the balls inside the box which is controlled by a motor. And we need to move as well. We want to start the flopper motor run all the time while we are on the move.

Is it possible to accomplish?

Thanks,
Subha

GeeTwo 14-12-2015 08:17

Re: [FTC]: FTC Autonomous How to run 2 tasks at the same time
 
Absolutely. Just put both tasks in your autonomous while(true) loop, one after the other. They will execute over and over, and should be plenty fast enough to effectively be doing both at the same time.


All times are GMT -5. The time now is 17:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi