How team-micras/micrasfirmware works
Project Type Analysis
This is an embedded systems firmware project for a micromouse robot, built with C++ using STM32 microcontroller. The project follows a modular architecture with clear separation of concerns.
Main Components
A. Hardware Layer (Bottom Level):
• STM32 Microcontroller
• Physical Components (Motors, Sensors, LEDs, etc.)
B. HAL Layer (micras_hal):
• ADC/DMA Controllers
• GPIO Interface
• Timer Management
• PWM Controllers
• SPI Communication
• Flash Memory Interface
C. Proxy Layer (micras_proxy):
• Hardware Component Abstractions:
• Motors/Locomotion
• Sensors (IMU, Wall, Torque)
• User Interface (LED, Button, Display)
• Power Management (Battery, Fan)
D. Core Layer (micras_core):
• Utility Functions
• Data Types
• Signal Processing (Butterworth Filter)
E. Navigation Layer (micras_nav):
• Maze Mapping
• Path Planning
• Motion Control
• State Management
• PID Controllers
[Physical Hardware Layer]
• ↑↓
[STM32 HAL Layer (micras_hal)]
• ↑↓
[Hardware Proxy Layer (micras_proxy)]
• ↑↓
[Core Utilities (micras_core)]
• ↑↓
[Navigation System (micras_nav)]
• ↑↓
[Main Controller]
Implementation Notes
• Maintain consistent styling
• Brief descriptions for each major component
• Version control integration points
Key Relationships to Highlight
• Hardware abstraction layers
• Sensor data flow
• Motion control pipeline
• Navigation algorithm integration
• State management system
• Testing infrastructure