How yassinebdr/projetmnia works
This small Python project simulates a drone navigating a grid. Its user-facing workflow selects an execution mode, supplies actions interactively or from a CSV, and applies them to a stateful environment that tracks movement, battery, hazards, docking, and visited zones. The environment delegates zone assignment to Grid.py. The excerpts show the interactive, automatic, and exhaustive modes, but omit parts of their implementations; uncertain details are not expanded.
Main entry points: Drone.py Drone environment · scenario_test.csv Action CSV · Grid.py Zone mapping
Components 10
Execution modes
- Mode dispatcher
Drone.py - Interactive mode
Drone.py - Automatic mode
Drone.py - Exhaustive mode
Drone.py - Action CSV
scenario_test.csv
Drone simulation
- Drone environment
Drone.py - Action dispatch
Drone.py - Flight state
Drone.py
Grid mapping
- Zone mapping
Grid.py
Other components
- User
Connections 14
- User → Mode dispatcher: selects mode
- Mode dispatcher → Interactive mode: dispatches
- Mode dispatcher → Automatic mode: dispatches
- Mode dispatcher → Exhaustive mode: dispatches
- Interactive mode → Drone environment: queries actions
- Interactive mode → Action dispatch: submits action
- Automatic mode → Action CSV: reads actions
- Automatic mode → Drone environment: checks state
- Automatic mode → Action dispatch: submits action
- Exhaustive mode → Drone environment: queries actions
- Exhaustive mode → Action dispatch: explores actions
- Action dispatch → Drone environment: dispatches action
- Drone environment → Flight state: updates state
- Drone environment → Zone mapping: assigns zone