View Single Post
  #27   Spotlight this post!  
Unread 23-08-2013, 15:28
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Encoder problems

Quote:
Originally Posted by Peleg2230 View Post
Phalanx, do you have any tips / important notes for working with the CAN?
I will probably test that after our offseason competition and I want to make sure I will have all the information needed.
Sure... Here are top tips....

1) Make sure you have good termination. Poor terminating has been the cause of more nightmares and headaches than anything else.

2) Don't overtax the CPU on the CRIO. When than happens the serial port bogs down, responses get slow, CAN errors tend to crop up.

3) Don't send the run at xxxx speed every loop (20ms) in teleop. I find that that adds too much traffic and floods the serial port. Just set it once, and then check it in a periodic loop (I like the 100ms loop for that). The Jaguar will do it's best to maintain that speed for you. You only need to tell it when you want to change it. It's kind of like, set it once and forget it.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote