vortexntnu / rov-control

Complete control system for Vortex' ROV
13 stars 9 forks source link

MCU interface #68

Closed eirikstor closed 6 years ago

eirikstor commented 6 years ago

Interface between the Onboard Computer (OBC) and microcontroller (MCU). Communication is done over UART.

serial_rw handles ROS subscribers that expects messages in different topics: /mcu_heartbeat, /mcu_arm, /mcu_light_pwm and /pwm.

SerialCom is a class that contains functionality for reading/writing over a serial port (/dev/ttySAC0) and contains the callback functions for the ROS subscribers.

crc contains cyclic redundancy check functionality