View Single Post
  #1   Spotlight this post!  
Unread 22-02-2016, 10:26
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MR. T)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 139
The Doctor is on a distinguished road
PDP CAN receive timeout

We've been having this problem all year. Last year, I wrote a program to stream sensor readings to the DS for debugging purposes. This year, it didn't work. Most of the sensors still work, but this year the amperage readings on the PDP cause all kinds of CAN timeout errors.

The line of code that doesn't work:

Code:
for (int i = 0; i < 16; i++) 
    table.putNumber("pwr_c_" + i,pdp.getCurrent(i)); // current draw for all 16 channels
The error looks something like "CTRE CAN Receive Timeout".

I've tried this with two different Rios and two different PDBs, with no luck. The weird part is, the problem only affects the current readings. Voltage and temperature readings for the PDB are working fine.
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.
Reply With Quote