|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
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.) Last edited by kamocat : 24-07-2010 at 14:52. |
|
#4
|
||||
|
||||
|
Re: passive reading speed and position
Anyways, we have a workaround now.
Can I still file a bug report? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |