Go to Post FIRST continues their full-frontal assault on mentor's vacation days. - Lil' Lavery [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-12-2010, 01:57 AM
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Motor declarations break analog module

In which team 1678 continues our saga of stumbling across every frustrating bug that exists:

Today I finished tracking down an error that was causing the analog module on our robot to not function correctly(about 90% of the time when you booted the robot, the analog inputs would be unreadable and it would spew "invalid parameter" errors from low-level analog functions). After replacing the hardware(didn't help), testing with sample code(made the errors go away), cutting out various functions(didn't help), reimaging the cRIO(didn't help), and finally going through and commenting/uncommenting everything line-by-line, I discovered that the cause was actually the declarations of the speed controller classes(victors and jaguars) that we were using to control our kicker and climbing mechanisms.


I really have no idea how this could be causing low-level errors in the analog code, but tests confirmed that this is indeed the case. Even more bizzarrely, the RobotDrive class that we have configured for 4-motor tank drive doesn't interfere with the analog system at all!

Does anyone know what might be going on? Right now, we have to choose between using sensors and using motors.
__________________
Get yer robot source code here!
Reply With Quote
 


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
Open motor reference on Slot 6 DIO Module trilogy2826 NI LabVIEW 2 01-27-2009 08:42 AM
spring break thatphotochick Chit-Chat 6 03-29-2006 05:41 PM
Taking apart the motor control module Adam Y. FIRST Tech Challenge 1 04-15-2005 02:02 PM
Module 7 gear -- fischer price motor archiver 2001 6 06-23-2002 10:55 PM
DC Motor current to an Analog Input junkyarddawg Motors 43 04-04-2002 03:53 PM


All times are GMT -5. The time now is 01:04 PM.

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