View unanswered posts | View active topics It is currently Wed Oct 22, 2014 9:40 pm






Reply to topic  [ 3 posts ] 
Problem with tasks and sensors 
Author Message
Rookie

Joined: Sat Jun 08, 2013 11:58 am
Posts: 6
Post Problem with tasks and sensors
I have wrote a program with more tasks. I use 6 sensors in the robot, and I noticed that when I try to use all of them in different tasks, they don't operate well. So, is it possible that I can't use so much sensors at the same time, or I did something wrong? What should I do? I tried to write waits among the tasks but it didn't help. (I use some distributors, too. I don't know, it may also can cause the problem). Thank you in advance. :-)


Sat Jun 08, 2013 12:10 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: Problem with tasks and sensors
Generally you don't need multitasking. The most likely did something wrong. You can certainly use six sensors, but trying to coordinate six tasks all checking stuff at the same time is difficult. It'd be helpful if you could post your current code and what'd your goal is.

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Sat Jun 08, 2013 12:35 pm
Profile WWW
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: Problem with tasks and sensors
If you're reading/monitoring all of the sensors, just put it in one task and read from all of them once per loop.

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Fri Jun 28, 2013 4:01 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.