Go to Post Let the team grow, let them fail, let them learn and always be ready to lend a helping hand. I think that's the best way to help rookie teams. - Justin Montois [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 17-02-2013, 13:12
mattachew12 mattachew12 is offline
Registered User
FRC #3597
 
Join Date: Feb 2013
Location: Maine
Posts: 20
mattachew12 is an unknown quantity at this point
error in speed control mode

I'm using two CANJaguars, but only testing on one for the moment, and when I try to set it to the speed control mode, it doesn't give speeds anywhere near what I want, and usually throws an error too
>>>>ERROR: status == -1073807298 (0xBFFF003E) in Read() in C:/WindRiver/workspace/BlackJagBridgePlugin/SerialPort.cpp at line 216
I'm using java and have a quadrature encoder attached to a gearbox, which I believe is causing the odd values, but I don't know why the error is being thrown. Sometimes it works, other times it doesn't. It seems to have something to do with my PID values (20.0, .1, .01) , but I'm not sure. Any ideas?
__________________
Error 404-Signature Not Found
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2013, 23:51
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: error in speed control mode

Your PID values are way too high. Start with a P of 1 or even 0.1. Set the I to something between 0.1 and 0.01. Set your D value to 0.

A good way of playing "what if?" is using the BDC-Comm program to try different gain values. Apply a light load to output to see if the values are adequate, and use the best values you find in your code.
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


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

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