C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2009, 04:06 PM   #1
Registered User
 
Join Date: Jun 2009
Location: New Mexico
Posts: 2
Continuous Navigation while X for a Robot

I am new to programming. I tried looking for this before I posted, but I'm not even sure what I'm looking for... So here is my question:

I am working on a robot that is using a c based programmable controller (a CBC from botball).

I have written a program that provides the robot's x, y, and heading for the robot. I can run this program all by itself with no issues.

What I need to be able to do is have this program continuously running (in the background) while the robot is going other things and then be able to access the x, y, and heading data at various times in the main program.

Any suggestions?
Creighton is offline   Reply With Quote
Old 06-27-2009, 11:42 PM   #2
Registered User
 
Join Date: Sep 2008
Location: Toronto, Canada
Posts: 507
Depends on whether there are built-in features in your environment that allow multi-threading, asynchronous and multi-executables... however you want to put it. Some controllers have what amount to multiple cores. Alternatively you'd have to write your own scheduler to detect sensor inputs while running doing your X,Y calculations. It's hard to tell from your description (unless I find what a CBC botball is) what's required. Just a quickie survey I believe there are Botball forum communities what could help you.
KISS and CBC Firmware source | Botball Community
nonoob is offline   Reply With Quote
Old 06-28-2009, 02:15 PM   #3
Registered User
 
Join Date: Jun 2009
Location: New Mexico
Posts: 2
Nonoob,
Thanks for the reply. Yes, there is a botball forum, but I thought I'd get a faster reply here -- plus those are the people I will be competing against.
From what I know, the cbc runs LINUX and the c used is a variation of c (not c+). The cbc has 2 gig of flash memory and a high end dual processors.
I have tried doing a program that has start_process(my_navigation_function), but don't know enough about struct, pointers, etc to make it work.
Have tried looking at examples in books and on the web, but I'm still too new to programming to be able to decipher the abstract examples.
Creighton
Creighton is offline   Reply With Quote
Old 06-29-2009, 08:38 PM   #4
Registered User
 
Join Date: Sep 2008
Location: Toronto, Canada
Posts: 507
Heh, yes it would be self defeating to ask your competition for help. I'l love to help but I have no idea what the controller can and can not do. Best bet is to team up with someone who is a better C programmer. It doesn't sound like a "who can learn C the fastest" is the idea of the contest... so I believe they assume some programming background.
nonoob is offline   Reply With Quote
Reply

Tags
botball, function, navigation, position, x&y

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Problem with the Robot output! tx1988 C++ Programming 0 04-18-2009 04:02 PM
Help! Robot Programming Gizzle C Programming 23 09-28-2006 07:32 AM
Help with moving robot in a maze Killahkode C Programming 2 09-25-2006 10:51 AM
Resource ICONs gbaker Windows Programming 4 12-15-2003 07:18 AM
Simulator program for a robot designed to move packages around in a warehouse Denise C Programming 5 09-08-2001 09:18 AM


All times are GMT -6. The time now is 01:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22