---
tag: GISTRE
title: Ada project
---
# Ada project
STM32F429
## Requirements
- [ ] See how to draw on screen
- [ ] Get info from gyroscope
## `Board` class:
- [ ] Matrix representing map.
- [ ] Specify start and end (on map directly) ?
- [ ] Display map on screen
## `Ball` class:
- [ ] (x, y) coordinates
- [ ] Move ball by getting values from gyroscope
- [ ] Use a ray system to detect possible collisions.
or
- [ ] Move the ball and see if it collides.
- [ ] Display ball on screen
## Menu
- [ ] Map selection
## Holes:
Consider it a bonus for now.
## Steps
- Show menu
- Initialize map and ball
- Update positions every x (time): update(Board board, Ball ball)
- [ ] Compute new ball position from gyroscope
- [ ] If not possible leave if where it is
- [ ] Check if ball reached end