Go to Post They can either incorporate the suggestions in this thread, go totally against them, or even make us all write code on banana peels with our fingernails. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2009, 13:44
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Digital Sidecars and Drive code

Hey all, we have modular electrical boards this year. We're trying to run a drive off of two different digital sidecars (that is, plug one pwm into the sidecar is slot 4, plug the other into the sidecar in slot 6). However, we get an error code -44036 or some number to that effect. We can rewire and run both motors off of one digital sidecar, but it leads to messy wiring, and we don't see any reason why it should matter. Does anyone know what we would need to do to make the Robot's motors work on separate sidecars?

Clarification: we know how to edit the code in Open2MotorDrive so that the motor references are in different slots. When we do that, we get an error. How do we fix it?
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #2   Spotlight this post!  
Unread 01-02-2009, 16:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Digital Sidecars and Drive code

You can do this, but the Drive class was intended to be pretty simple, thus cuts down on parameters by making constants internally. To make a Drive that uses other than slot 4, you need to open the Open Motor VI. Notice that on its diagram it is opening motors and building an array, but never wires in a module number. This means that it will always use the default of 4.

One thing to do is Save the Drive Open to your own folder under a different name replacing the current one throughout your program (the first radio option in the Save As... dialog). Next modify it to use the slots you want for each motor. The rest of the Drive stuff doesn't care and works fine with either slot.

Greg McKaskle
  #3   Spotlight this post!  
Unread 01-02-2009, 21:08
Tt321b Tt321b is offline
Registered User
AKA: Tony
FRC #1803
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Port Washington, NY
Posts: 28
Tt321b is a jewel in the roughTt321b is a jewel in the roughTt321b is a jewel in the rough
Send a message via AIM to Tt321b
Re: Digital Sidecars and Drive code

Instead of using Open2MotorDrive just do it the long way and program each motor individually.
__________________
Team 1803
2006 SBPLI Regional
- Highest Seeded Rookie
- Rookie All-Star Award
2008 SBPLI Regional
- Regional Finalists (358, 533, 1803)
  #4   Spotlight this post!  
Unread 02-02-2009, 11:15
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Digital Sidecars and Drive code

Greg: i tried to say that we had already done that. After we did that it gave us an error.
Tt: That would work, but if that's the only other option, i'd rather just rewire and let the electrical team deal with it.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Closed Thread


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
Analog-to-Digital Converter Code Kevin Watson Programming 29 17-02-2008 13:07
Drive Code DavidGitz Programming 11 04-02-2007 02:03
Camera track and drive integration code Inverted Programming 2 25-01-2007 02:00
EasyC for FRC: Drive and Auto Track Camera Code Kingofl337 Programming 7 08-01-2007 15:30
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


All times are GMT -5. The time now is 16:34.

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