Repository navigation
Add auto setup Raspberry Pi CAN Bus interface on instance creation
Added in method to set up the can interface on the Raspberry Pi so that the user doesn't have to run this command or bash script before being able to use the pyodrivecan package.
This will check if the can0 interface on the Raspberry Pi has been set up already or if there are any errors. If it hasn't been setup it will automatically set it up for the user to enable the CAN communication with the O-Drive. If there are any errors detected it will shut down the interface, reset it, and then reinitialize it until it is successfully set up.
This will remove an extra step a user would have to perform to use their own Raspberry Pi with a CAN Hat to control an O-Drive.