I am trying to interface a Spark Max motor controller via CAN bus on Raspberry Pi 4. I have a CAN shield on the RPi that is communicating with a Pigeon IMU using the Phoenix-Linux-SocketCAN-Example code without issue. I am also able to configure the SparkMax via the Windows client which uses USB to CAN.
The SparkMax SDK (v1.5.2) comes with static libraries for RPi that are dependent on WPILib libraries for which there does not seem to exist a Raspbian port. As a result, my understanding is that I cannot use the SparkMax API on a Raspberry Pi at the moment. Is this correct?
I’m assuming the next best option is to send raw CAN frames to the motor controller, but it seems others have had issues getting this to work. What is it going to take to get raw CAN control of a SparkMax device from a Raspberry Pi.