Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.08 KB

Robocar_car_stm

System directly controlling the car hardware in Robocar project

Main project

More information on the project available at: https://github.com/juanma-rm/Robocar_SWP

About

The application runs on top of FreeRTOS, splitting the process in several tasks:

  • SPI: handles SPI communication as slave.
  • Data center: collects information from the incoming SPI messages and the sensors and redirect it as needed to the robot control task and the outgoing SPI messages. It also prints status out via serial port for debugging.
  • hcsr04: driver for hcsr04 ultrasonics sensors.
  • Robot control: handles the motor control (setting speed as PWM, processing incoming orders from the user and calculating linear and angular speed).

Tasks run under round-robin policy with 1 ms of period.

Contact

LinkedIn