Go to Post 30 point hang is brutal. Those who say it is easy are not thinking it through or are way smarter than the rest of us ... - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 18-03-2010, 00:26
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
LM_API_CFG_NUM_BRUSHES

On this page of the firstforge site (May require login) :

http://firstforge.wpi.edu/integration/viewcvs/viewcvs.cgi/CANJaguar%20for%20Java/src/edu/wpi/first/addons/JaguarCANProtocol.java?root=canjaguar&rev=9&system =exsy1002&view=markup

There is a line :

Code:
public static final int LM_API_CFG_NUM_BRUSHES = (LM_API_CFG | (0 << CAN_MSGID_API_S));
If we tell the jaguar how many brushes our motor has, could we use the motor's brushes as a simple tachometer so that we could do closed loop (somewhat) speed control without adding additional sensors (encoders, potentiometers, etc.)?

edit:
And if this could be used, how many brushes do the CIMs have?

If this could be used, would this work for a speed reference (or even position)?
Code:
    public static class SpeedReference {

        public final byte value;
        static final byte kEncoder_val = 0;
        static final byte kBrush_val = 1;
        public static final SpeedReference kEncoder = new SpeedReference(kEncoder_val);
        public static final SpeedReference kBrushes = new SpeedReference(kBrush_val);

        private SpeedReference(byte value) {
            this.value = value;
        }
    }
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!

Last edited by biojae : 18-03-2010 at 23:44. Reason: Clarification
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


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

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