|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||
|
|||
|
Re: 4-slot cRIO and default modules
That all sounds about right, other than that you could never put the modules wherever you wanted as far as I know. I believe it used to be Analog in 1 and 2 (may have been 1 and 3), Digital in 4 and 6 and solenoid in 7 and 8.
And yes, backward code comparability has not been maintained. All code that specifically referenced slot numbers (other than analog slot 1 which is 1 either way) must be updated to work in order to work with the new libraries and image. EDIT: Just saw your edit. You must put Analog, Digital, Solenoid in that order in slots 1-3 on either cRIO (solenoid may be omitted). On the 4 slot, the 4th slot can be any module. On the 8 slot the pattern repeats with slots 5-7 with 4 and 8 left empty (any of the "extra" modules may be omitted, but the modules may not be shuffled around). There's a description of the new paradigm in the C++ Getting Started Guide: http://firstforge.wpi.edu/sf/go/doc1197?nav=1 Last edited by RufflesRidge : 19-01-2012 at 23:50. |
|
#17
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
Quote:
![]() |
|
#18
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
Quote:
). I can address them by:Code:
Gyro(1, 1); //Gyro in slot 1, channel 1 Gyro(2, 1); //Gyro in slot 4, channel 1 Gyro(3, 1); //Gyro in slot 5, channel 1 Last edited by mikets : 19-01-2012 at 23:54. |
|
#19
|
|||||
|
|||||
|
Re: 4-slot cRIO and default modules
Quote:
|
|
#20
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
You said no modules are supported in slot 4 or 8. Is it because it's not allowed by the rules or is it because the code won't accept anything in slot 4 or 8?
|
|
#21
|
||||||
|
||||||
|
Re: 4-slot cRIO and default modules
The code doesn't support it because the hardware (FPGA) doesn't support it.
|
|
#22
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
Sorry about beating the dead horse but I am just curious about why the cRIO has the extra slot and the FPGA does not support it. It seems to me the extra slot is very useful especially in the 4-slot cRIO. For example, it is quite easy to run out of digital I/O channels with encoders taking 2 channels each, teams may want to stick another digital module in slot 4, for example.
Also RufflesRidge mentioned slot 4 of the 4-slot cRIO can take any modules. |
|
#23
|
|||||
|
|||||
|
Re: 4-slot cRIO and default modules
You can stick whichever module you need in slot-4 of the cRIO FRC II.
The older cRIO FRC I, was just given the 3+0+3+0 pattern as a design choice. We are unlikely to mix the two up. The FPGA is really full with all it's been given to do. Excess capacity got sucked up to benefit us in other much more potentially useful ways. All resources are limited in one way or another. Engineering is designing and choosing between the optimal tradeoffs for our application. Last edited by Mark McLeod : 20-01-2012 at 13:44. |
|
#24
|
||||
|
||||
|
Quote:
.Speaking of dead horses...this is just wrong. LOL- Bryce |
|
#25
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
Quote:
![]() |
|
#26
|
|||||
|
|||||
|
Re: 4-slot cRIO and default modules
|
|
#27
|
|||
|
|||
|
Re: 4-slot cRIO and default modules
I hope I don't add to the confusion, but it is worth mentioning that the cRIO FPGA is reprogrammable. In its day job, it can have 8 32-bit digital modules if you like, and it is also possible to compile in a slot manager that will map the slots dynamically and make it truly plug-n-play. But, all of this is dependent on the FPGA, and the FRC FPGA uses fixed slots and has a ton of flexibility in what the pins can do.
Greg McKaskle |
|
#28
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
I've never had the fun of programming a machine with switches and push buttons, but some co-workers have shared many a story about entering bootloaders this way (and even more arcane methods).
- Bryce |
|
#29
|
||||
|
||||
|
Re: 4-slot cRIO and default modules
I've done that too with the PDP-11.
|
|
#30
|
|||
|
|||
|
Greg, we were planning to go with two analogs in slots 1 and 4, and two digitals in slots 2 and 3 on a 4-slot cRIO. We're ordering a 4-slot specifically for that purpose. Are you saying we can't do this. We have no pneumatics this year.
Chris |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|