Go to Post Wait...you're supposed to have a driver? I guess I should have read past the Autonomous section in the manual :D - ASD20 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2009, 22:34
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
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
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2009, 23:05
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2009, 23:10
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Re: How to change module slots in code

Thanks!

-Matt
Reply With Quote
Reply


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
how to build a VEX programming module bblack7489 FIRST Tech Challenge 78 09-06-2011 16:03
how do i change the db? explodingcan 3D Animation and Competition 3 15-02-2008 18:35
How to make vex programming module Eisner664 General Forum 2 20-04-2006 19:00
how to convert Easy C code into real code? TheHolyLancer Programming 1 29-01-2006 09:09
How do I change my gallery picture? MarkF CD Forum Support 2 26-03-2003 10:26


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

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