Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   How to change module slots in code (http://www.chiefdelphi.com/forums/showthread.php?t=73573)

manderson5192 03-02-2009 22:34

How to change module slots in code
 
Hey guys,

Whenever the electrical team moves the modules around in the cRIO and doesn't put them back where they go, our software runs into a problem. Basically, the console output talks about mis-allocated ports for each of the modules in the cRIO (this makes sense). It also seems to shut down all the outputs from the system (PWMs, digital, etc).

I tried calling the SetDefaultDigitalModule function from SensorBase.cpp, but that didn't seem to do the trick.

I'm clearly missing something. Has anyone gotten this to work?

Thanks,
-Matt

gokul 03-02-2009 23:05

Re: How to change module slots in code
 
This year the modules MUST stay in their original slots :
Analogs in 1 and 2
Digitals in 4 and 6
Solenoid in 8.
They should not be moved around :)
Analog Module 1 (Slot 1) must be installed to enable battery voltage monitoring.
Digital Module 1 (Slot 4) must be installed and connected to Digital Sidecar for the Robot Status Light to be attached.
Rest of the modules are optional if a team is not using them.

manderson5192 03-02-2009 23:10

Re: How to change module slots in code
 
Thanks!

-Matt


All times are GMT -5. The time now is 02:51.

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