Go to Post As Murphy as my witness, things happen and will continue to happen. - Pavan Dave [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-07-2010, 21:12
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
passive reading speed and position

I'm trying to record speed and position of the jaguars, for motion tracking purposes. (I want the robot to record its location)
I'd like this to happen regardless of the control mode or enabled state of the motor. It's just a status command, so it should work, shouldn't it?

It doesn't appear to.

I've opened each Jaguar in voltage mode, and set the number of encoder lines, and done a position reference and a speed reference. screenshot (I overrode the logic so that the speed and position referencing will happen regardless of the mode.)

This is an important issue in the usability of CAN.
__________________
-- Marshal Horn
Reply With Quote
  #2   Spotlight this post!  
Unread 24-07-2010, 00:17
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: passive reading speed and position

Have you checked if the values show up in BDC-COMM? I remember that the current was being actively updated in there (and I was checking it through the robot too). I see nothing in the Jaguar firmware that would prevent it from sending those status messages, nor in the C++ code.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #3   Spotlight this post!  
Unread 24-07-2010, 14:17
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: passive reading speed and position

I'll double-check.
I know that current is updated regardless of mode, but I'm pretty sure the speed and position were not.

EDIT:
I found some interesting results.
Speed and position are not initially reported in Voltage mode. However, after enabling that mode, and then going back, it appears to work.
I'll see if I can repeat this with my code.

EDIT2:
It works with my code just fine. The Driver Station doesn't even need to be connected. Note that "position reference" and "speed reference" are still both necessary. (I tried moving the wheel while speed referencing, but it didn't seem to make a difference; it still referenced 0 as stopped.)
__________________
-- Marshal Horn

Last edited by kamocat : 24-07-2010 at 14:52.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-07-2010, 14:53
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: passive reading speed and position

Anyways, we have a workaround now.

Can I still file a bug report?
__________________
-- Marshal Horn
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
Strategy for Passive Robots (with no attack system) MikePres General Forum 7 08-02-2009 17:39
Drive Control, Wheel Speed Calibration, and Rapid Speed Changes 7-11number1 Programming 3 23-01-2008 20:36
Reading and writing to RX/TX on vex whsrobotics Programming 1 24-02-2006 22:03
Reading binary data from a file and writing it in VB complete Programming 1 02-01-2006 21:21
Problem with reading and writing EEPROM DKolberg Programming 4 16-03-2004 19:29


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