(ACTIVE) Hardware Initialization
Plan
Centralize hardware initialization in one single place, see bin/crazy-car-init.cpp
The driving software bin/crazy-car.cpp will then pick up the properly initialized hardware, and work with it.
List of hardware pieces (to be extended)
Create message queue
Export necessary PWM pins, and configure accordingly
set
periodto a value that the hardware supportsset
duty_cycleto 0set
enableto 1 (is that necessary? cannot hurt at least)
Export necessary GPIO pins, and configure them accordingly
Set
directiontooutSet
valueto 0
Notes
This task is the software counterpart of (DONE) Arduino/Pi Adapter PCB. Communication absolutely necessary.