(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 period to a value that the hardware supports

    • set duty_cycle to 0

    • set enable to 1 (is that necessary? cannot hurt at least)

  • Export necessary GPIO pins, and configure them accordingly

    • Set direction to out

    • Set value to 0

Notes

This task is the software counterpart of (DONE) Arduino/Pi Adapter PCB. Communication absolutely necessary.