Skip to content

Commit b6fc8c7

Browse files
committed
Fix tests and add documentation
1 parent 30baabe commit b6fc8c7

File tree

3 files changed

+236
-4
lines changed

3 files changed

+236
-4
lines changed

docs/concepts/drone-models.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,27 @@ balanced_model = parametrize(so_rpy_rotor_dynamics, "cf2x_L250")
8787
- Measure parameters, such as mass
8888
- Fit model to a few minutes of flight data
8989

90+
You can use the given pixi environment, which can be activated with `pixi shell -e sysid`. An example is given below:
91+
9092
```python
91-
from drone_models.utils.identification import sys_id_lin
92-
#TODO
93+
from drone_models.utils.identification import sys_id_rotation, sys_id_translation
94+
95+
# Your observations as a dict
96+
data = {
97+
"time": time,
98+
"pos": pos,
99+
"quat": quat,
100+
"cmd_rpy": cmd_rpy,
101+
"cmd_f": cmd_f,
102+
}
103+
104+
# Preprocessing and derivatives computation
105+
data = preprocessing(data)
106+
data = derivatives_svf(data)
107+
108+
# Actual sysid scripts
109+
sys_id_translation(model="so_rpy_rotor_drag", mass=mass, data=data)
110+
sys_id_rotation(data=data)
93111
```
94112

95113
For more information on the identification process, check out our [API](TODO)

0 commit comments

Comments
 (0)