ADIS16448 Not Found

Our team has been trying to get the ADIS 16448 to connect to our RIO using the new WPIlib 2022.4.1. We have plugged in the Gyro to the MXP port and it is secured to the rio with screws into the mounting holes. The power light turns on but we have been unable to receive any outputs from the board. When deplying to the RIOlog shows this error message:
Error: Could not find ADIS16448! Error at SwitchToStandardSPI: Error: Could not find ADIS16448! at frc::ReportErrorV(int, char const*, int, char const*, fmt::v8::basic_string_view<char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<fmt::v8::appender, char> >) + 0x120 [0xb6c446d8] at frc::ADIS16448_IMU::SwitchToStandardSPI() + 0x274 [0xb6cc757c] at frc::ADIS16448_IMU::ADIS16448_IMU(frc::ADIS16448_IMU::IMUAxis, frc::SPI::Port, frc::ADIS16448_IMU::CalibrationTime) + 0x1a4 [0xb6cc79b0] at void frc::impl::RunRobot<Robot>(wpi::priority_mutex&, Robot**) + 0x2ec [0x19828] at int frc::StartRobot<Robot>() + 0x3d4 [0x1a444] at __libc_start_main + 0x114 [0xb551c580] Error: could not find ADXL362 Error at ADXL362: Error: could not find ADXL362 at frc::ReportErrorV(int, char const*, int, char const*, fmt::v8::basic_string_view<char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<fmt::v8::appender, char> >) + 0x120 [0xb6c446d8] at frc::ADXL362::ADXL362(frc::SPI::Port, frc::Accelerometer::Range) + 0x29c [0xb6c5ad8c] at void frc::impl::RunRobot<Robot>(wpi::priority_mutex&, Robot**) + 0x30c [0x19848] at int frc::StartRobot<Robot>() + 0x3d4 [0x1a444] at __libc_start_main + 0x114 [0xb551c580]

Other analog Gyros work and we use the full constructor

frc::ADIS16448_IMU innertialSensor{frc::ADIS16448_IMU::IMUAxis::kY, frc::SPI::Port::kMXP, frc::ADIS16448_IMU::CalibrationTime::_1s};

(I set it to Y axis calibration temporarily because the RIO and ADIS16448 are currently flat on a table and not mounted on the robot)

Any other teams expericing this issue?

Screenshot (2)

1 Like

Forgot to add that we ran into the same error when we created an entirely new wpilib project and only copy pasted example code from this github

Is your code opening both an ADIS16448 and an ADXL362? What port are you opening both of them on?

ADIS on the

We were testing if we could use a different kind of analog devices gyro. The adxl362 is not being detected even though the adxrs450 on the same board and port is being detected.
The adxl is in the kOnboardCS0 port, the adis16448 is in the kMXP port

Are you instantiating the ADXRS450 at the same time as the ADIS16448?

In our original attempt yes, but when we attemted to use the vendor example for the adis16448 we did not instantiate an ADXRS450

Since both the ADXRS450 and ADIS16448 use the autoSPI feature of the FPGA, and there’s only one of them, I suspect that caused your problem. And the vendor library didn’t work since it isn’t compiled for 2022.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.