Go to Post "Congratulations to our FIRST team coming back from the championships in St. Louis." (We all applaud) "Remember, if you're not FIRST, you're last!" - Our pilot on the second plane back home. - demosthenes2k8 [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
  #10   Spotlight this post!  
Unread 08-11-2010, 20:08
sam_who sam_who is offline
Registered User
FRC #2190
 
Join Date: Oct 2010
Location: Mississippi
Posts: 42
sam_who is an unknown quantity at this point
Joystick motion to CAN connected jaguar

Here's the latest update.

I took Radical Pi's advice (thank you) and called,
SetSpeedReference.

I can now read non-zero values when calling GetSpeed.

I can now use values for Set () greater than one (hurray!).

I STILL can't read the firmware version. I'm okay with that.

I am only able to read zero when calling GetPosition. Maybe you have to be in position mode?

With PID values = 10,0,0 and encoder counts of 360, I got a lot of cogging (chattering?) at speeds less than 10 rpm.

I artificially inflated the encoder counts and got MUCH smoother motion at all speeds.

For the new encoder counts, I used (360 * 12.75 = 4590). I also tried
(360 / 12.75 = 28.2 ==> 28 ) but the cogging was WAY worse than before.

The maximum speed I could achieve that was reported with GetSpeed was about 32. I'm going to have to use something (a strobe light, maybe?) to determine the actual rpm value.

I'm kind of surprised that SetSpeed Reference had to be called. I was looking through the embedded comments in CANJaguar.cpp. The comments stated that the only option for a feedback device in speed mode was ... wait for it

... an encoder!

Thanks to everybody that contributed.

Sam
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
Can we detect if PSoC is connected or not ? gokul Programming 5 03-03-2010 11:24
CAN Jaguar enhancements JasonStern CAN 10 01-03-2010 09:38
CAN Jaguar Malfunction PranavSathy CAN 4 21-02-2010 18:32
Joystick To Jaguar Taxi Quinn Programming 1 17-02-2010 11:12
Using the same Jaguar/Controller for Joystick and buttons.... mck567 NI LabVIEW 2 09-02-2010 16:34


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

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