Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Regarding The cRio (http://www.chiefdelphi.com/forums/showthread.php?t=84950)

davidthefat 04-04-2010 22:50

Regarding The cRio
 
http://sine.ni.com/nips/cds/view/p/lang/en/nid/203964

I am assuming that is the cRio that we get... Is it legal to used a 2nd crio on your robot? Its a PowerPC based controller... Thats interesting isnt it? My mentor said that he was willing to buy another cRio for me to practice on, so why not use 2 on the robot?

Robototes2412 04-04-2010 22:53

Re: Regarding The cRio
 
Umm, i dont know. i do have a quick question for you though. Are you prepared to have two robots to program for? They cannot have any communication with either eachother or the world, and there is only one gaming adapter. At most, i'd use an arduino, but a whole other cRIO, i wouldn't.

davidthefat 04-04-2010 23:00

Re: Regarding The cRio
 
Quote:

Originally Posted by Robototes2412 (Post 948134)
Umm, i dont know. i do have a quick question for you though. Are you prepared to have two robots to program for? They cannot have any communication with either eachother or the world, and there is only one gaming adapter. At most, i'd use an arduino, but a whole other cRIO, i wouldn't.

My mentor thinks its most wise to work on the processor the final robot would have... I want to use 2 cRios on one robot because I think a ATmegaa284p won't have enough juice to run the image processing from multiple sensors very efficiently...

MattD 04-04-2010 23:00

Re: Regarding The cRio
 
At minimum, I'd imagine this would violate <R22>. I'm not aware of any other rule that would specifically prohibit this, but I'm also not aware of any reason to use more than one cRIO on one robot.

Al3+ 04-04-2010 23:00

Re: Regarding The cRio
 
Hmmmm...

Quote:

<R56> ROBOTS must be controlled via the programmable National Instruments cRIO-FRC (National Instruments part number 780406-01). Other controllers shall not be used.

Custom circuits and additional electronics are allowed to utilize the Port 2 Ethernet bus and/or the CAN-bus to communicate between devices. Note however, that the ROBOT must be controlled by the cRIO-FRC (see Rule <R56>). Thus, any additional devices on the Ethernet or CAN-bus must not provide command signals that do not originate from the cRIO-FRC It is our intent to incrementally open access to the full control system technologies in a controlled manner that reduces the risk of “unanticipated surprises” as we gain experience with the system.
That's what the competition manual says; I'm not sure how to interpret it or how you plan to use the other cRIO.

Edit: And also <R22> as mentioned above.

davidthefat 04-04-2010 23:03

Re: Regarding The cRio
 
Quote:

Originally Posted by Al3+ (Post 948143)
Hmmmm...

<R56> ROBOTS must be controlled via the programmable National Instruments cRIO-FRC (National Instruments part number 780406-01). Other controllers shall not be used.

Custom circuits and additional electronics are allowed to utilize the Port 2 Ethernet bus and/or the CAN-bus to communicate between devices. Note however, that the ROBOT must be controlled by the cRIO-FRC (see Rule <R56>). Thus, any additional devices on the Ethernet or CAN-bus must not provide command signals that do not originate from the cRIO-FRC It is our intent to incrementally open access to the full control system technologies in a controlled manner that reduces the risk of “unanticipated surprises” as we gain experience with the system.

That's what the competition manual says; I'm not sure how to interpret it or how you plan to use the other cRIO.

I have a theory that you can use the port 2 ethernet port and connect the crio from the port one. Some one end of the enternet goes to the # 1 port then into the #2 port of the other and the camera goes on the 2nd post of #1

davidthefat 04-04-2010 23:04

Re: Regarding The cRio
 
Quote:

Originally Posted by MattD (Post 948142)
At minimum, I'd imagine this would violate <R22>. I'm not aware of any other rule that would specifically prohibit this, but I'm also not aware of any reason to use more than one cRIO on one robot.

But technically it is a KOP thing... Just multiple:D

biojae 04-04-2010 23:05

Re: Regarding The cRio
 
As far as communications go, the second ethernet port on the cRio (one that communicates to FMS) can be used to talk to the second cRio.

Quote:

<R68> All outputs from sensors, custom circuits and additional electronics shall connect to only
A. other custom circuits, or the following:
B. additional COTS electronics, or
C. input ports on the Digital Sidecar, or
D. input ports on the Analog Breakout, or
E. the RS-232 DB-9 serial port on the cRIO-FRC, or
F. the Ethernet bus connected to Port 2 of the cRIO-FRC,
Emphasis mine.

davidthefat 04-04-2010 23:07

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 948149)
As far as communications go, the second ethernet port on the cRio (one that communicates to FMS) can be used to talk to the second cRio.



Emphasis mine.

Its also probably possible to hook up another microcontroller as a Digital I/O

MattD 04-04-2010 23:10

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948147)
But technically it is a KOP thing... Just multiple:D

The first cRIO would come from the KOP. The second would be a COTS COMPONENT.

Andrew Schreiber 04-04-2010 23:13

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948129)
http://sine.ni.com/nips/cds/view/p/lang/en/nid/203964

I am assuming that is the cRio that we get... Is it legal to used a 2nd crio on your robot? Its a PowerPC based controller... Thats interesting isnt it? My mentor said that he was willing to buy another cRio for me to practice on, so why not use 2 on the robot?

Check the rules for custom electronics. If it meets all those rules you are ok.

BUT It is probably way too late to do this for 2010 and 2010 rules don't apply for 2011...

biojae 04-04-2010 23:14

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948152)
Its also probably possible to hook up another microcontroller as a Digital I/O

Which is correct, but if you have an ethernet port on your microcontroller (or 2nd cRio) why wouldn't you want to get 1 or more megabytes per second throughput?

Going through GPIO is going to be slower then ethernet.

davidthefat 04-04-2010 23:16

Re: Regarding The cRio
 
Quote:

Originally Posted by Andrew Schreiber (Post 948160)
Check the rules for custom electronics. If it meets all those rules you are ok.

BUT It is probably way too late to do this for 2010 and 2010 rules don't apply for 2011...

Dont the general rules stay the same year by year?

Andrew Schreiber 04-04-2010 23:19

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948166)
Dont the general rules stay the same year by year?

Nope, in general they are similar but they do change.

davidthefat 04-04-2010 23:21

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 948162)
Which is correct, but if you have an ethernet port on your microcontroller (or 2nd cRio) why wouldn't you want to get 1 or more megabytes per second throughput?

Going through GPIO is going to be slower then ethernet.

If I have an ethernet port on the microcontroller (not a 2nd cRio) where would the camera plug in if the 2nd port is used up? Not using it on the microcontroller, its too much for it

biojae 04-04-2010 23:28

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948170)
If I have an ethernet port on the microcontroller (not a 2nd cRio) where would the camera plug in if the 2nd port is used up? Not using it on the microcontroller, its too much for it

According to this Q&A post : http://forums.usfirst.org/showthread.php?t=14423

Quote:


"<R68> Says the Ethernet bus connected to Port 2 of the cRIO-FRC may be used.

Does this mean that a network switch may be used to communicate between devices on the bus as long as the command signals originate from the cRIO-FRC?"

Yes.
Now keep in mind that rules change from year to year, these are only this year's.

davidthefat 04-04-2010 23:29

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 948180)
According to this Q&A post : http://forums.usfirst.org/showthread.php?t=14423



Now keep in mind that rules change from year to year, these are only this year's.

:D A network switch! Never thought of that

virtuald 04-04-2010 23:40

Re: Regarding The cRio
 
If I recall correctly theres a rule somewhere restricting the amount you can spend on a single electronic components. I think it was $400, so that excludes the cRio (which you can get one at a discount from NI for something like $1500 I think).

Radical Pi 04-04-2010 23:41

Re: Regarding The cRio
 
I don't think you can count an extra cRIO as KOP component. Also, would the cost be considered 750 or 1400 dollars (the offseason rate vs full)

davidthefat 04-04-2010 23:41

Re: Regarding The cRio
 
http://zone.ni.com/wv/app/doc/p/id/wv-1291/nextonly/y

davidthefat 04-04-2010 23:52

Re: Regarding The cRio
 
http://www.robotshop.com/roboard-rb-...omputer-2.html

this sounds like a better investment: its cheaper (way cheaper) and its C++

Fletch1373 04-04-2010 23:58

Re: Regarding The cRio
 
Just putting this out there, I've been an inspector at 3 regionals(WPI, Boston, and CT) and the inspection checklist has always included this line:

Quote:

Controller – 1 cRIO must be used on the robot and it must be the only device connected to the 37-pin Digital Sidecar ports and the 25-pin ports on the Solenoid and Analog Breakout(s) used on the robot <R56>
The way I read that is that you can't use more than 1(even if cost wasn't an issue). So as an inspector, without seeing an update or Q&A post specifically allowing it, I would say no to that idea.

-Eric

biojae 05-04-2010 00:03

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948200)
http://www.robotshop.com/roboard-rb-...omputer-2.html

this sounds like a better investment: its cheaper (way cheaper) and its C++

Though the little battery may have to go (even though its current output is inconsequential)

rule <R01> and <r40>

Quote:

<R40> The only legal primary source of electrical energy on the ROBOT during the competition is one MK ES17-12 12VDC non-spillable lead acid battery, OR one EnerSys NP 18-12 battery, as provided in the 2010 KOP. Teams may use other equivalent 12V batteries during development, testing and practice MATCHES. However, during competition MATCHES only one MK ES17-12 battery OR one EnerSys NP 18-12 battery can be used on the ROBOT.

Joe Ross 05-04-2010 00:04

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948129)
http://sine.ni.com/nips/cds/view/p/lang/en/nid/203964

I am assuming that is the cRio that we get...

It's similar to what we get, but not the same. Here's what we get: http://sine.ni.com/nips/cds/view/p/lang/en/nid/206678

davidthefat 05-04-2010 00:04

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 948210)
Though the little battery may have to go (even though its current output is inconsequential)

rule <R01> and <r40>

"• Power input range of 6V to 24VDC"

But the battery is a 12v, so it would work

The Lucas 05-04-2010 00:06

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948200)
http://www.robotshop.com/roboard-rb-...omputer-2.html

this sounds like a better investment: its cheaper (way cheaper) and its C++

Has a battery, not legal. Extra Crio costs too much. Whats wrong with the Gumstix and Beagleboard proposed on the other thread?

davidthefat 05-04-2010 00:07

Re: Regarding The cRio
 
Quote:

Originally Posted by The Lucas (Post 948214)
Has a battery, not legal. Extra Crio costs too much. Whats wrong with the Gumstix and Beagleboard proposed on the other thread?

:o Never really looked into it


edit: you can always get teh battery plug thing at radio shack and rig it up to the power distribution board


Looked into the beagle, I like it, but its purpose is too general, the other link has robotics in mind, so it has pwm out puts and stuff, but this does not. Will ahve a meeting with Mentors, Programmers and electronics

The Lucas 05-04-2010 00:24

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948217)
:o Never really looked into it


edit: you can always get teh battery plug thing at radio shack and rig it up to the power distribution board

If it has a battery then it need/wants power while there is no power on the PD board. It is probably a BIOS battery so you probably need it to boot.

As I suggested on the other thread read about the Adam Bots CoProcessor. Although it is geared for the 2007 IFI system, it should give you an appreciation for the task of developing a coprocessor and some info on using Gumstix form a team that has done it before.

Quote:

Originally Posted by davidthefat (Post 948217)
Looked into the beagle, I like it, but its purpose is too general, the other link has robotics in mind, so it has pwm out puts and stuff, but this does not. Will ahve a meeting with Mentors, Programmers and electronics

You cant legally use a coprocessor to control anything directly <R03>. The Crio still has to set all outputs to speed controllers etc... You can use the coprocessor to communicate with the Crio via Ethernet Port 2, RS 232, SPI, CAN etc... Please read the manual particularly the robot section before buying anything. Unlike the battery and the cost accounting issues, <R03> no custom circuit (coprocessor) affecting outputs is a straightforward basic rule that should have known if you read the manual.

davidthefat 05-04-2010 00:26

Re: Regarding The cRio
 
Quote:

Originally Posted by The Lucas (Post 948235)
If it has a battery then it need/wants power while there is no power on the PD board. It is probably a BIOS battery so you probaly need it to boot.

As I suggested on the other thread read about the Adam Bots CoProcessor. Although it is geared for the 2007 IFI system, it should give you an appreciation for the task of developing a coprocessor and some info on using Gumstix form a team that has done it before.

;) The judges don't have to find out about the BIOS battery, they probably won't care...

Andrew Schreiber 05-04-2010 00:30

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948236)
;) The judges don't have to find out about the BIOS battery, they probably won't care...

No.

davidthefat 05-04-2010 00:31

Re: Regarding The cRio
 
Actually reread the rules:
"The only legal primary source of electrical energy on the ROBOT during the competition is one MK ES17-12 12VDC non-spillable lead acid battery, OR one EnerSys NP 18-12 battery, as provided in the 2010 KOP. Teams may use other equivalent 12V batteries during development, testing and practice MATCHES. However, during competition MATCHES only one MK ES17-12 battery OR one EnerSys NP 18-12 battery can be used on the ROBOT."


BIOS is not primary, its a secondary source

biojae 05-04-2010 00:54

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948241)
Actually reread the rules:
"The only legal primary source of electrical energy on the ROBOT during the competition is one MK ES17-12 12VDC non-spillable lead acid battery, OR one EnerSys NP 18-12 battery, as provided in the 2010 KOP. Teams may use other equivalent 12V batteries during development, testing and practice MATCHES. However, during competition MATCHES only one MK ES17-12 battery OR one EnerSys NP 18-12 battery can be used on the ROBOT."


BIOS is not primary, its a secondary source



Then there is rule <r42>
Quote:

<R42> Items specifically PROHIBITED from use on the ROBOT include:
A. Any battery other than, or in addition to, the one primary battery permitted by Rule <R40>.

MattD 05-04-2010 00:55

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948241)
Actually reread the rules:
"The only legal primary source of electrical energy on the ROBOT during the competition is one MK ES17-12 12VDC non-spillable lead acid battery, OR one EnerSys NP 18-12 battery, as provided in the 2010 KOP. Teams may use other equivalent 12V batteries during development, testing and practice MATCHES. However, during competition MATCHES only one MK ES17-12 battery OR one EnerSys NP 18-12 battery can be used on the ROBOT."


BIOS is not primary, its a secondary source

Take a look at <R01> and <R42.A>. This would prohibit a secondary battery.

Quote:

<R01> Energy used by FRC ROBOTS, (i.e., stored at the start of a MATCH), shall come only from
the following sources:
A. Electrical energy derived from the onboard 12V battery (see Rule <R40> for specifications
and further details).
B. Compressed air stored in the pneumatic system, stored at a maximum pressure of 120 PSI
in no more than four Clippard Instruments tanks. Extraneous lengths of pneumatic tubing
shall not be used to increase the storage capacity of the air storage system.
C. A change in the altitude of the ROBOT center of gravity.
D. Storage achieved by deformation of ROBOT parts.

davidthefat 05-04-2010 00:56

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 948256)
Then there is rule <r42>

:ahh: :mad: Why does FIRST have so strict rules like that... Gah ruins everything


http://www.robotshop.com/ProductInfo...board-computer

that fits the requirements... even though the memory is less than the other one... I still like roboard...

JamJam263 05-04-2010 01:10

Re: Regarding The cRio
 
Quote:

Originally Posted by Fletch1373 (Post 948204)
Just putting this out there, I've been an inspector at 3 regionals(WPI, Boston, and CT) and the inspection checklist has always included this line:



The way I read that is that you can't use more than 1(even if cost wasn't an issue). So as an inspector, without seeing an update or Q&A post specifically allowing it, I would say no to that idea.

-Eric

We asked at NYC because we happen to have two cRIOs, and alot of spare time. We had a tcp client/server coded out, we where mainly just gunna send printf data to one, and use the serial port as a console output. But the inspector quoted that exact line from the check list, saying you can only have one, not taking into account the max price rule.

However what we did think of, and haven't come across any kind of rule against, is using a usb-serial or a usb-ethernet adapter on the driver station, and putting a crio and power board on you driver station. You could have a perfect scale model of your robot on your driver station, with working motors, and what ever else you could want.

davidthefat 05-04-2010 01:15

Re: Regarding The cRio
 
Quote:

Originally Posted by JamJam263 (Post 948265)
We asked at NYC because we happen to have two cRIOs, and alot of spare time. We had a tcp client/server coded out, we where mainly just gunna send printf data to one, and use the serial port as a console output. But the inspector quoted that exact line from the check list, saying you can only have one, not taking into account the max price rule.

However what we did think of, and haven't come across any kind of rule against, is using a usb-serial or a usb-ethernet adapter on the driver station, and putting a crio and power board on you driver station. You could have a perfect scale model of your robot on your driver station, with working motors, and what ever else you could want.

That won't do any help with processing data from the robot, takes too long to get the data from teh robot to classmate to the replica robot then back to classmate then back to the real robot on the field...

biojae 05-04-2010 01:36

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948269)
That won't do any help with processing data from the robot, takes too long to get the data from teh robot to classmate to the replica robot then back to classmate then back to the real robot on the field...

How would the classmate send data back to the robot?
The only data the DS software transfers is from the joysticks, not a serial port.

Not to mention having to lug the cRio, power supply, usb to ethernet (or serial) as well as the regular driverstation. It would be heavy. Hope you have strong drivers!

edit: (Sorry about the double post, on very weak wifi)

JamJam263 05-04-2010 09:36

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948269)
That won't do any help with processing data from the robot, takes too long to get the data from teh robot to classmate to the replica robot then back to classmate then back to the real robot on the field...

Never planed on using to process data on the robot. Only thing we thought of doing with it was having a small version of our arm (before we decided it wasn't worth using) and our kicker at like a 1in = .5ft scale. None of it would be in the least bit necessary, but it would look amazing, and make it easier to visualize whats going on.

PAR_WIG1350 05-04-2010 10:25

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948200)
http://www.robotshop.com/roboard-rb-...omputer-2.html

this sounds like a better investment: its cheaper (way cheaper) and its C++

Yes!!!!!!!!!!!!!

I have one of those and it's cool so far, now if only I could figure out how to install Linux.

davidthefat 05-04-2010 10:29

Re: Regarding The cRio
 
Quote:

Originally Posted by PAR_WIG1350 (Post 948360)
Yes!!!!!!!!!!!!!

I have one of those and it's cool so far, now if only I could figure out how to install Linux.

Its just a really small computer, you have to buy the vga port thing though, its like $60

PAR_WIG1350 05-04-2010 10:30

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 948210)
Though the little battery may have to go (even though its current output is inconsequential)

rule <R01> and <r40>

The Cmos Battery? Hmm... that does seem to be an issue.:ahh:
Well, I guess we can cross the roboard <rb-100 OR rb-110> off the list :mad:

PAR_WIG1350 05-04-2010 10:31

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948364)
Its just a really small computer, you have to buy the vga port thing though, its like $60

I'm aware of that option, but is that really the onlyway?

Foster 05-04-2010 11:56

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 948411)
Yea, or you don't know WTF you are doing, you cant see

Or in a slightly longer, more informative way:

Yes, you will need the VGA connection to act as a monitor. You use the combination monitor / keyboard to be the main console to program, etc.

Plan B would be to use one of the serial ports as a TTY device. That would only work in a non-Windows OS mode.

They are pretty spiffy boards, but running a full blown OS on them isn't a good idea. Linux, DOS or one of the Embedded Windows is fine, performance for full XP isn't fast.

Good luck!

davidthefat 05-04-2010 12:03

Re: Regarding The cRio
 
Quote:

Originally Posted by Foster (Post 948426)
Or in a slightly longer, more informative way:

Yes, you will need the VGA connection to act as a monitor. You use the combination monitor / keyboard to be the main console to program, etc.

Plan B would be to use one of the serial ports as a TTY device. That would only work in a non-Windows OS mode.

They are pretty spiffy boards, but running a full blown OS on them isn't a good idea. Linux, DOS or one of the Embedded Windows is fine, performance for full XP isn't fast.

Good luck!

Run a text based linux distro or a hacked minimum xps like tinyxp

JamJam263 05-04-2010 14:12

Re: Regarding The cRio
 
Why not just go all out and use http://www.newegg.com/Product/Produc...-228-_-Product .
All youd have to get is a DC laptop chrager with the same specs, and your good to go.

davidthefat 05-04-2010 15:15

Re: Regarding The cRio
 
Quote:

Originally Posted by JamJam263 (Post 948527)
Why not just go all out and use http://www.newegg.com/Product/Produc...-228-_-Product .
All youd have to get is a DC laptop chrager with the same specs, and your good to go.

I don't think putting a computer on teh robot will go well with the teammates... At least for the other boards, it doesnt look anything like a computer, but it is

AustinSchuh 05-04-2010 20:30

Re: Regarding The cRio
 
Quote:

Originally Posted by JamJam263 (Post 948527)
Why not just go all out and use http://www.newegg.com/Product/Produc...-228-_-Product .
All youd have to get is a DC laptop chrager with the same specs, and your good to go.

Be very careful. I've heard that the motor in the hard drive is considered a motor, and is therefore not allowed to be used on the robot since it didn't come in the kit. Same goes for the fan inside that computer, if there is one. So, you'd need something with a SSD, and that is fanless.

On a completely separate note, you can use USB to attach another simpler board to do IO, if you are having trouble finding a powerful board to use that has good IO. Food for the thought to get you thinking.

PAR_WIG1350 02-05-2010 13:49

Re: Regarding The cRio
 
Quote:

Originally Posted by Foster (Post 948426)
Or in a slightly longer, more informative way:

Yes, you will need the VGA connection to act as a monitor. You use the combination monitor / keyboard to be the main console to program, etc.

Plan B would be to use one of the serial ports as a TTY device. That would only work in a non-Windows OS mode.

They are pretty spiffy boards, but running a full blown OS on them isn't a good idea. Linux, DOS or one of the Embedded Windows is fine, performance for full XP isn't fast.

Good luck!

yes, I have the cable to connect the board to my computer for terminal IO, The plan was to create a live usb on either an XUbuntu or windows machine with the Debian (or Ubuntu) i386 image on it. then the instructions I have get fuzzy. I either boot my computer with the live usb, configure the SSH for terminal access, and boot the roboard with it and install the kernel package on the roboard, or I do the same thing but install the kernel before I boot the roboard with it, or I just make the live USB, boot the Roboard and some how do every thing from there with the remote terminal interface. My main issue is the person on my team who is attempting to help me thinks that I know more than I do.

Foster 02-05-2010 14:53

Re: Regarding The cRio
 
What I'd do is create a bootable (livecd) image and put it on the USB stick. Your co-processor board would boot up the "livecd" image and start running. You would put a script to run your user code in /etc/rc.local (that script runs after everything is up.) You do have an issue that it takes some time to boot up completely. It "should" be less than the cRio, but your mileage may vary.

Your user code would be the program that runs to do your image processing / sensor processing / etc. The nice thing is that you could write that code in anything (C, Perl, Java, Awk, Cobol, etc.)

You could write on the Host PC and then ssh file transfer down to the coprocessor board. It then becomes the same "code, download, restart, test" cycle you do with the cRio.

Remember Google is your friend. Somebody, someplace at sometime has done something very, very close to what you want to do and has written it up. So don't be afraid to us Google to search it out.

davidthefat 02-05-2010 17:17

Re: Regarding The cRio
 
Quote:

Originally Posted by Foster (Post 959622)
What I'd do is create a bootable (livecd) image and put it on the USB stick. Your co-processor board would boot up the "livecd" image and start running. You would put a script to run your user code in /etc/rc.local (that script runs after everything is up.) You do have an issue that it takes some time to boot up completely. It "should" be less than the cRio, but your mileage may vary.

Your user code would be the program that runs to do your image processing / sensor processing / etc. The nice thing is that you could write that code in anything (C, Perl, Java, Awk, Cobol, etc.)

You could write on the Host PC and then ssh file transfer down to the coprocessor board. It then becomes the same "code, download, restart, test" cycle you do with the cRio.

Remember Google is your friend. Somebody, someplace at sometime has done something very, very close to what you want to do and has written it up. So don't be afraid to us Google to search it out.

My mentor pretty much told me that a second PC will not be needed, since the crio is pretty powerful as it is, but I am still keeping the PC idea in mind, the problem is that the usb idea is "fragile". the USB can pop out mid competition, so thats dead. I was thinking of just using a SS drive (no moving parts) instead of HDD, so it can't get messed up as bad

M.Wong 02-05-2010 17:22

Re: Regarding The cRio
 
It would not be worth the added power. The cRio has so much power, most teams do not get anywhere near fully utilizing the cRio. Plus, using two cRios would be extremely restrictive on the rest of your robot (cost wise).

theprgramerdude 02-05-2010 20:04

Re: Regarding The cRio
 
Quote:

Originally Posted by M.Wong (Post 959649)
It would not be worth the added power. The cRio has so much power, most teams do not get anywhere near fully utilizing the cRio. Plus, using two cRios would be extremely restrictive on the rest of your robot (cost wise).

Baha, image detection algorithms push the Crio to its limits as is. Anything more advanced is simply impossible.
Right now, I notice the severe lag from doing two or more circle detections per cycle, and this only adds up to about 10-15 times per second.
Does anyone think asking FIRST to ease this restriction concerning BIOS batteries for next year would be option?

davidthefat 02-05-2010 20:19

Re: Regarding The cRio
 
Quote:

Originally Posted by theprgramerdude (Post 959699)
Baha, image detection algorithms push the Crio to its limits as is. Anything more advanced is simply impossible.
Right now, I notice the severe lag from doing two or more circle detections per cycle, and this only adds up to about 10-15 times per second.
Does anyone think asking FIRST to ease this restriction concerning BIOS batteries for next year would be option?

;) They don't have to know what they don't know... Just enclose it in a regular pc case


edit: Or even more bad $@#$@#$@#, use 1 or more ps3's on board, they are like $300 each, so its legal. Just use a enternet hub and boot up linux on it... BAD $@#$@#$@#!!

theprgramerdude 02-05-2010 21:36

Re: Regarding The cRio
 
That's a very neat idea, but really, the Cell is just a CPU on steroids. And thus, it's a CPU which can't compare to a GPU's performance, even though it's easier to code. It's like trying to compare anything to infinity.

Unfortunately, a PC case would probably be a big weight and shock-resistance hassle. These components already have to withstand huge Gforce shocks, even with bumpers. Kudos for the idea, though. That'd be interesting, seeing my neon-blue case on a robot.

davidthefat 02-05-2010 21:53

Re: Regarding The cRio
 
Quote:

Originally Posted by theprgramerdude (Post 959741)
That's a very neat idea, but really, the Cell is just a CPU on steroids. And thus, it's a CPU which can't compare to a GPU's performance, even though it's easier to code. It's like trying to compare anything to infinity.

Unfortunately, a PC case would probably be a big weight and shock-resistance hassle. These components already have to withstand huge Gforce shocks, even with bumpers. Kudos for the idea, though. That'd be interesting, seeing my neon-blue case on a robot.

Actually coded right, the Cell processor is way more useful than the PS3 RSX (the gpu), it was the only way that Uncharted 2 looked so good, they took some of the GPU work to the cell

http://www.ibm.com/developerworks/po...pa-linuxps3-1/

M.Wong 03-05-2010 06:51

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 959711)
;)
edit: Or even more bad $@#$@#$@#, use 1 or more ps3's on board, they are like $300 each, so its legal. Just use a enternet hub and boot up linux on it... BAD $@#$@#$@#!!

Don't update your Ps3 then. Linux support just got dropped.

davidthefat 03-05-2010 10:04

Re: Regarding The cRio
 
Quote:

Originally Posted by M.Wong (Post 959808)
Don't update your Ps3 then. Linux support just got dropped.

;) Im aware, gah no PSN for me now

JamesBrown 03-05-2010 10:50

Re: Regarding The cRio
 
Quote:

Originally Posted by Fletch1373 (Post 948204)
Just putting this out there, I've been an inspector at 3 regionals(WPI, Boston, and CT) and the inspection checklist has always included this line:



The way I read that is that you can't use more than 1(even if cost wasn't an issue). So as an inspector, without seeing an update or Q&A post specifically allowing it, I would say no to that idea.

-Eric

Why do you interpret it this way?

Quote:

Originally Posted by Fletch1373 (Post 948204)
Controller – 1 cRIO must be used on the robot

This part does not disallow the use of a second cRIO, it simply says that 1 must be used on the robot. If two are used on the robot then one is being used on the robot. If the rule said 1 and only 1 cRIO must be used then I would agree with this interpretation.

Quote:

Originally Posted by Fletch1373 (Post 948204)
and it must be the only device connected to the 37-pin Digital Sidecar ports and the 25-pin ports on the Solenoid and Analog Breakout(s) used on the robot <R56>

This also does not specifically prohibit using a second cRIO as a co-processor, If one cRIO is connected to all of the sensors and actuators (with the possible exception of the camera) and the other is connected to the cRIO via the second Ethernet port, and used only to interpret data sent through the ethernet port or gathered by the camera or another sensor attached to the second cRIO's second Ethernet port then this set up would not violate the quoted rule.

Obviously the best way to handle this would be to ask Q&A but If I were to read the rule indicated by the check list:

Quote:

<R56> ROBOTS must be controlled via the programmable National Instruments cRIO-FRC (National Instruments part number 780406-01). Other controllers shall not be used.
I would see nothing wrong with using a second cRIO (as in this setup it would not be a controller, just a processor).

It worries me some times that inspectors a left with a lot of room to make judgment calls (all though I understand it is necessary). I could easily show up to a competition with the set up I described (assuming it fit all of the cost guidelines) having never asked Q&A because my set up seems to be clearly allowed, only to have atleast two inspectors (Fletch and another one mentioned in this thread) who clearly have a difference in opinion to what the rule means, largely (in my opinion) based on the lack of differentiation by the inspectors between a controller and a co-processor.

Robototes2412 03-05-2010 11:04

Re: Regarding The cRio
 
Oh my goodness! I forgot the fact that the cRIO has a serial port that can be used to do this stuff. If you use an absurdly high baud rate (with a heavy dose of custom code, of course) and hook up a crio to, say, an arduino over serial (hook up the tx and rx to digital ports 0 and 1), you could have a co-processor work. I'm going to experiment with this and i will keep you posted.

davidthefat 03-05-2010 18:21

Re: Regarding The cRio
 
Quote:

Originally Posted by Robototes2412 (Post 959850)
Oh my goodness! I forgot the fact that the cRIO has a serial port that can be used to do this stuff. If you use an absurdly high baud rate (with a heavy dose of custom code, of course) and hook up a crio to, say, an arduino over serial (hook up the tx and rx to digital ports 0 and 1), you could have a co-processor work. I'm going to experiment with this and i will keep you posted.

The max for arduino is 9600 baud rate

Andrew Schreiber 03-05-2010 19:07

Re: Regarding The cRio
 
Quote:

Originally Posted by davidthefat (Post 959945)
The max for arduino is 9600 baud rate

No it isn't. http://www.arduino.cc/en/Serial/Begin I've run mine at 115200 and it works fine.

theprgramerdude 03-05-2010 19:12

Re: Regarding The cRio
 
Isn't that still a seriously low level of bandwidth?

I guess knowing what you are passing back and forth, it might only have to come down to raw, simple data that gets proccessed, and the results are passed back just as simply, but still...

davidthefat 03-05-2010 19:19

Re: Regarding The cRio
 
Quote:

Originally Posted by Andrew Schreiber (Post 959951)
No it isn't. http://www.arduino.cc/en/Serial/Begin I've run mine at 115200 and it works fine.

LULZ I was looking at http://arduino.cc/en/Reference/SoftwareSerial

biojae 03-05-2010 20:12

Re: Regarding The cRio
 
If you are seriously considering an arduino, then why don't you use one of the ethernet shields?

http://www.adafruit.com/index.php?main_page=product_info&cPath=17_21&produ cts_id=83
http://www.sparkfun.com/commerce/pro...oducts_id=9026

that would leave the serial port on the cRio open, and dwould allow a network switch to combine several on the robot.

The sparkfun shield communicates over SPI, which theoretically has a higher bandwidth then the serial comms that it is replacing

theprgramerdude 04-05-2010 19:26

Re: Regarding The cRio
 
Don't other electronics, such as the Jaguars, use BIOS batteries?

biojae 04-05-2010 20:06

Re: Regarding The cRio
 
Quote:

Originally Posted by theprgramerdude (Post 960172)
Don't other electronics, such as the Jaguars, use BIOS batteries?

No, only the compactRio has a bios battery for its real time clock.

I have a picture of the insides of a jaguar which i will edit my post to attach (can't find it right now)

davidthefat 04-05-2010 20:24

Re: Regarding The cRio
 
Quote:

Originally Posted by biojae (Post 959967)
If you are seriously considering an arduino, then why don't you use one of the ethernet shields?

http://www.adafruit.com/index.php?main_page=product_info&cPath=17_21&produ cts_id=83
http://www.sparkfun.com/commerce/pro...oducts_id=9026

that would leave the serial port on the cRio open, and dwould allow a network switch to combine several on the robot.

The sparkfun shield communicates over SPI, which theoretically has a higher bandwidth then the serial comms that it is replacing

There are cheaper alternate to the Arduino, the mbed, has CAN, Ethernet, file system and serial all built in at $50 only bad side id teh compiler is only online


All times are GMT -5. The time now is 23:15.

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