Quote:
Originally Posted by torzewsk
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.