View Single Post
  #7   Spotlight this post!  
Unread 10-03-2015, 22:42
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 524
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Glitchy motor behavior, requires double code upload to fix

Quote:
[6] Anything in the DS log when this problem occurs?
as mentioned in another question there is a lot of stuff on the DS, and only when it initially powers up and first code upload.
This question was about the DS log...,
http://wpilib.screenstepslive.com/s/...og-file-viewer
... not the DS messages...see "Messages Tab" at
http://wpilib.screenstepslive.com/s/...tware#Messages

Quote:
they are blinking red and green
That means the Talon's are driving. Most likely just not enough throttle to move.

Quote:
i don't know if they should or shouldn't be "zero". i just know 9 always works without issue and as expected but 8 which is programmed in the exact same way and just gets a mirror value sent to it sometimes goes to position i never send it and gets stuck there.
Those Victors don't really know anything about "position". Do you mean they are going to a nonzero output-value (as in not neutral). That really sounds like a code-issue, so... I guess it could be that you weren't updating them as often as you thought? Or at all?

Quote:
I mean why keep sending a motor the same value over and over?
I wouldn't worry about that. It just updates a register which is then periodically sent at a fixed rate over PWM/CAN. There is no harm whatsoever.

I'm a little worried that by adding logic to detect changes and reacting to them, your over-complicating what is normally a simple task, updating throttles. And as a result its muddying the waters as far as: why are the motor controllers not doing what I expect? The fact that your having trouble with CAN and PWM MCs also kinda suggests that.

It sounds like you got something working, but you might want post your latest anyway. Might help better explain what you mean by where the motor-refs are retrieved.
Reply With Quote