View Single Post
  #11   Spotlight this post!  
Unread Yesterday, 15:22
slibert slibert is online now
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 374
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: NavX causing robot code to reboot

Quote:
Originally Posted by torzewsk View Post
We are using C++. The navX is plugged directly into the RoboRio and we are calling ahrs= new AHRS(SerialPort::kMXP); commenting this line out allows the code to continue, but of course our AHRS pointer is null. The line is called from Robot::RobotInit. I've tried commenting out almost the entire rest of the program to no effect. Thanks for thinking about this!
Thanks, the details help. The code you have shown is attempting to communicate via TTL UART serial port w/the sensor. Is that your intention?

Most teams that use navX-MXP use MXP-bus SPI (SPI:ort::kMXP).

navX-Micro is typically used w/USB. (SerialPort:ort::kUSB).

I'd recommend you review the port specification parameter to the AHRS class constructor. It's possible you're trying to specify a communication path that is invalid for your configuration.
Reply With Quote