Hardware and firmware for MAVRIC's main control system