Go to Post I don't think we should only be pointing at those with exceptional bots, but those that we consider a role model team in all aspects, not just in technical design - tribotec_ca88 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-09-2008, 11:27
Comatose Comatose is offline
Registered User
AKA: Lead Student Programmer
FRC #0135 (Penn Robotics)
Team Role: Programmer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: United States of America
Posts: 27
Comatose is an unknown quantity at this point
Completely new to programming robots...

I have labview 8.2 to learn off of, as well as easy C and C++. I'm trying to apply what I've learned from my classes in C++ that I can apply to this robot. We have previous robots to go off of, but we only know how to create software applications, like accounting software, but have no idea how to get started making a robot move you know. We used to have a mentor to teach us how to do this, but he no longer is a part of our team. Is there any site or post or something that can send us in the right direction for this?
  #2   Spotlight this post!  
Unread 16-09-2008, 11:50
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,801
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Completely new to programming robots...

Quote:
Originally Posted by Comatose View Post
I have labview 8.2 to learn off of, as well as easy C and C++. I'm trying to apply what I've learned from my classes in C++ that I can apply to this robot. We have previous robots to go off of, but we only know how to create software applications, like accounting software, but have no idea how to get started making a robot move you know. We used to have a mentor to teach us how to do this, but he no longer is a part of our team. Is there any site or post or something that can send us in the right direction for this?
Site? Look no further. Post? Well, this thread might help; the original poster was in a similar boat, though with more experience. Follow the links for more help.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 16-09-2008, 12:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Completely new to programming robots...

We're all new to programming FRC robots using LabView this year.

The first sample hardware and software for the 2009 robot control system is just now being made available to a select few teams. I expect that in the next week or so we'll have links to the "right" way to do it, with the NI/LabView equivalent of the IFI default code. Until we've seen the documentation for the new system, we can't do a whole lot to prepare ourselves for programming it.
  #4   Spotlight this post!  
Unread 16-09-2008, 16:26
Bob Steele's Avatar
Bob Steele Bob Steele is offline
Professional Steamacrit Hunter
AKA: Bob Steele
FRC #1983 (Skunk Works Robotics)
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Seattle, Washington
Posts: 1,526
Bob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond repute
Re: Completely new to programming robots...

Actually if you want to try LabView (and I highly encourage you to do this) you can contact LabVIEW at ni.com and download 8.5. It will be good for 30 days... and you can contact a local NI rep to get an activation code for it for permanent use.

You can also then go to ni.com/first and take a look at the training that is there. This is the FIRST specific community that NI has set up.

There will be more and more information at this site as it is produced.
Right now there are links to some LabVIEW tutorials there that could help you get a feel for LV right now...

If you know any FTC teams, The FTC specific Labview program was released last week and they have it. We are trying to determine whether this could be released to FRC teams to play with. It is very easy to program a NXT robot using this FTC version. This would be time well spent.

You can also download an NXT toolkit that would enable you to program the Mindstorm NXT brick with LabVIEW. (This is what FTC uses as a controller).
This informationis available at

http://zone.ni.com/devzone/cda/tut/p/id/4435


I hope this will help you...
(and any others...)
__________________
Raisbeck Aviation High School TEAM 1983 - Seattle, Washington
Las Vegas 07 WINNER w/ 1425/254...Seattle 08 WINNER w/ 2046/949.. Oregon 09 WINNER w/1318/2635..SEA 10 RCA ..Spokane 12 WINNER w/2122/4082 and RCA...Central Wa 13 WINNER w/1425/753..Seattle 13 WINNER w/948/492 & RCA ..Spokane 13 WINNER w/2471/4125.. Spokane 14 - DCA --Auburn 14 - WINNER w/1318/4960..District CMP 14 WINNER w/1318/2907, District CMA.. CMP 14 Newton Finalist w 971/341/3147 ... Auburn Mountainview 15 WINNER w/1318/3049 - Mt Vernon 15 WINNER w/1318/4654 - Philomath 15 WINNER w/955/847 -District CMP 15 WINNER w/955/2930 & District CMA -CMP Newton -Industrial Design Award

  #5   Spotlight this post!  
Unread 19-09-2008, 19:22
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Completely new to programming robots...

Quote:
Originally Posted by paraphrase
How do you make a robot move?
I'll choose to answer that question quite literally. Since we are still using Victor 884s this year, you'll use an unsigned byte (0 to 255) to control the Victors, with 127 being neutral. In truth we are using the TTL outputs, connected to a PWM bumper, so there will be some VI that transmits the unsigned byte somehow (I assume it'd just be a series of 8 bits, but there's probably a couple more to mark where to start reading the number. Personally, I'd like to do it all with the FPGA, and just use the PWM bumper as a way to transmit the signal from the TTL module to a PWM cable. Of course, this would require opto-isolation, and FIRST doesn't seem to be too into that. Next year we won't be using the 884s, so they might just give us a fused H-bridge and let us create our own PWM. (Actually, it would be more like an H-bridge with a relay shut-off to the motor if the cable is pulled. The good thing is, this would still be about a tenth of the price of an 884).)

Assuming you're using a joystick control, you have the right and left drive tied to the x axis, and their offset tied to the y axis (after you've subtracted 128 and converted the y axis to a signed byte). This would work just fine, assuming the unsigned bytes saturate instead of rolling over. (you can temporarily turn it into a signed word and use the "In Range and Coerce" vi, found in Programming -> comparison)

And that's certainly not the only way of controlling a robot. I'm working on an image-based method of controlling the robot, which can be found at http://sotabot.com/robot/programming.html It's labelled "robot tracker" because so far, it just tracks the paths of both the right and left drives, given the speed of both drives. I'm still working on an efficient way of reading objects off the screen (without looking at every pixel in a 40px radius). There's also some other VIs there that I thought might be useful.

Hope that helps!
__________________
-- Marshal Horn
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera code completely turning off all PWM's Horohoroboarder Programming 10 10-02-2007 19:16
Programming for Vex robots Jeff K. Programming 4 13-11-2005 16:40
Linux-Powered Robots and Flexible Programming jdong Programming 26 14-09-2005 17:48
And now for something completely Different... What is love??? Robby O Chit-Chat 81 17-08-2001 14:16


All times are GMT -5. The time now is 12:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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