arche/quadrotor
Quadrotor
A quadrotor: a free body with four rotors (thrusters with their drag torque), an IMU, an attitude sensor and a position fix, and a flight controller that holds its attitude, its place and its altitude, and steps to a new altitude; its plant in MuJoCo, its test cases run against it.
plantmujocodronequadrotorattitudealtitudecontrol
Partir de ce modèle
archec new my-project --template arche/quadrotorUne copie devient votre projet, à vous de la modifier : ses fichiers dans un nouveau dossier, prêts pour archec build.
▶ Essayer ◆ 3D Ouvrir dans le Playground { } Voir le code son modèle tourne dans votre navigateur, rien à installer
Paquet
| Type | modèle de projet |
|---|---|
| Version | 0.1.0 |
| Licence | Apache-2.0 |
| Contrôle export | none |
| Compatible avec | archec >=0.10 |
| Édition | 0.12 |
| Handlers | le langage d’action (```arche), exécuté en TypeScript d’après son code |
| Site | https://github.com/arche-lang/arche-lang |
Modèle
| Systèmes | Quad |
|---|---|
| Composants | Frame Rotor Imu Ahrs Gps FlightController |
| Exigences | 4 |
| Messages | 4 |
Code fourni
| Emplacement | Langage | Lignes |
|---|---|---|
main.arche · FlightController.on_motion.body | arche | 3 |
main.arche · FlightController.on_attitude.body | arche | 5 |
main.arche · FlightController.on_fix.body | arche | 29 |
Ce que c’est
Quad · ses parties et leurs liensQuadrotor
A 1 kg quadrotor in the "+" layout: a free body and four rotors 0.15 m from its centre, each a thruster (0 to 10 N) that turns the frame back about z by its drag (prop reaction, ±0.016 N·m per N: front and back one way, left and right the other). An IMU gives the rates, an attitude sensor the quaternion, a position fix the place. It starts in the air at 1 m.
| | | |---|---| | Plant | a free body, 4 thrusters on sites, IMU, attitude (framequat), position (framepos), 1 ms step | | Controller | place → tilt, attitude PD per axis, altitude PD around the hover thrust, the mixer, 200 Hz | | Requirements | REQ-QD-HOLD, REQ-QD-STEP (±0.05 m in 3 s), REQ-QD-MOVE, REQ-QD-SAFE (formal "never fc in Failsafe") | | Test plan | TP-QD: hover at 1 m, climb to 1.5 m, move 0.5 m along x |
archec new my-drone --template quadrotor a project from it, yours to change
archec gen main.arche --target mujoco -o out
archec sim main.arche --plant out/mujoco/plant_bridge.py --test
In MuJoCo (4.0): the hover holds 1 m exactly (nothing disturbs it); a step to 1.5 m is within 0.05 m from 0.4 s after it, overshooting by 14 mm; a move of 0.5 m along x is within 0.05 m 1.7 s after it, tilting 0.11 rad at most, the altitude held within 1 mm. Wind and rotor dynamics are not in the plant.
Fichiers 3 · 9,4 Ko
archec add le vérifie.
Utilise
N’utilise aucun autre paquet.
Utilisé par
Aucun paquet du store ne l’utilise encore.
Versions
★ 0 étoile↓ 0 téléchargement
| Version | Publiée le | archec | État | Changements | Téléchargements |
|---|---|---|---|---|---|
0.1.0 | 12 nov. 2026 | >=0.10 | publique | 0 |
Signature
Signé par arche avec la clé e660d0a8851875b9. Fichiers : 3, empreinte sha256-5128c8a480dd395c623e…. archec add vérifie les deux avant d’écrire quoi que ce soit.
Discussion
Chargement…