You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README
+59-9
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,75 @@
1
1
# G&C Network
2
2
3
-
This project consists in training a feedfoward network using reinforcement learning to fly a drone through a set of gates. More information of this project can be found on the following scientific paper.
3
+
This project consists in training a feedfoward network using reinforcement learning to fly a drone through a set of gates. For more information, consult the [Nano Drone Racing](https://github.com/fed12345/nano-drone-racing) repository.
4
4
5
5
6
6
## Description
7
+
This is a repository to that create, trains and accelerates a nerual network, which handles the drone’s guidance and control functions. This network runs at an impressive rate of 167Hz on an STM32F405 processor, outputting attitude rates and thrust values for an attitude rate PID controller.
8
+
9
+
The steps that need to be carried out are:
10
+
1. Carry out system identification of the drone
11
+
2. Train the decided architerue and train NN
12
+
3. Evaluate NN
13
+
4. Convert it to C code via [ONNX](https://github.com/onnx/onnx)
14
+
5. Deploy it on any drone autopilot for example [bitcraze](https://github.com/bitcraze/crazyflie-firmware)(this is not included in this repo)
7
15
8
-
An in-depth paragraph about your project and overview of use.
9
16
10
17
## Getting Started
11
18
12
19
### Dependencies
13
20
14
-
- Describe any prerequisites, libraries, OS version, etc., needed before installing the program.
- [Conda](https://www.anaconda.com/download) or Pip
16
23
17
24
### Installing
18
25
19
-
- How/where to download your program
20
-
- Any modifications needed to be made to files/folders
26
+
1. **Clone the repository:**
27
+
28
+
```bash
29
+
git clone https://github.com/fed12345/controlnet
30
+
cd controlnet
31
+
```
32
+
33
+
34
+
2. **Set Up a Virtual Environment (recommended)**
35
+
36
+
It’s a best practice to use a virtual environment to manage dependencies. To create a virtual environment, run the following command with conda installed:
37
+
38
+
```bash
39
+
conda create --name controlnet
40
+
conda activate controlnet
41
+
```
42
+
43
+
3. **Intall Dependencies**
44
+
45
+
With the environment active, install all necessary packages by running:
46
+
47
+
```bash
48
+
pip install -r requirements.txt
49
+
```
50
+
## Executing Progam
51
+
52
+
1. **Model Quadcopter**
53
+
It is necessary to aquire some data on the dynamics on the drone, as we will model the droens response as a first over system in terms of roll, pitch, yaw and thrust. We desired states and measured stated.
54
+
55
+
We can then use the python modelling script to model the drone, the output will be a series of marticies which have to be inputted in the simulator:
0 commit comments