View Single Post
  #2   Spotlight this post!  
Unread 24-01-2015, 14:51
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Another DoubleSolenoid question

Hmm it looks like that assert will trip on anything >= PCM Device ID 8....
Quote:
const uint32_t solenoid_kNumDO7_0Elements = 8;
...HAL.cpp in wpilib. This gets passed into a Resource object which trips on line 87 of Resource.cpp.

Not sure if that's the intent of the code's author, but I would keep the device ID less than '8' just to be safe. Hopefully you have less than 8 PCMs!

The reason changing the param in your c'tor to '1' from '11' breaks the compressor is likely because you didn't change the PCM ID to '1' in the RIO web-page config.

Setting the device ID...
http://wpilib.screenstepslive.com/s/...ribution-panel
Reply With Quote