Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
e93447b
Add functions for initializaing a lead lag biquad filter and initiali…
tomaantjes Jul 10, 2025
078f661
Add an initializer for biquadLeadLag filter and a compensator for the…
tomaantjes Jul 10, 2025
4250a73
Clean up comment
tomaantjes Jul 10, 2025
4d3b7fb
Correct incorrect usage of tauEst and tauDes in motor lead-lag filter
tomaantjes Jul 10, 2025
ee8c5a8
Add lead lag filter and desired time constant to indi init
tomaantjes Jul 10, 2025
9694547
Apply motor lead lag filter before setting motor command
tomaantjes Jul 10, 2025
1f3105e
Add desired actuator time constant to settings
tomaantjes Jul 10, 2025
f16ce14
Add desired MS to indiProfile
tomaantjes Jul 10, 2025
7757890
Add desired actuator time constant to parameter names.h
tomaantjes Jul 10, 2025
45ea5e9
Fix typo in code
tomaantjes Jul 10, 2025
6b0dacc
Use proper units in lead-lag filter
tomaantjes Jul 10, 2025
4a4f50f
Properly check wheter motor lead lag should be used
tomaantjes Jul 10, 2025
c6d7a58
Add feedforward variables
tomaantjes Jul 10, 2025
5384d53
Apply ff to attitude rates
tomaantjes Jul 10, 2025
c14a155
Fix error in MotorLeadLag comment
tomaantjes Jul 11, 2025
7002510
Initialize desired time constant of motors in seconds properly
tomaantjes Jul 11, 2025
ae77329
Move motor lead-lag before simulation of spin-up
tomaantjes Jul 11, 2025
5e902f0
Convert feedforward coefs from config file properly to the actual val…
tomaantjes Jul 11, 2025
0f0b057
Add commented USE_INDI_FEEDFORWARD definitiion into meteor75 paramete…
tomaantjes Jul 11, 2025
2c0705a
Add back removed blank lines and remove added blank lines
tomaantjes Jul 11, 2025
59d17e7
debugged feedforward + added to blackbox
tblaha Jul 14, 2025
b018a02
motor lead lag does something in simulation
tblaha Jul 14, 2025
959b752
make motor lead lag act on final output rather than u, so log files s…
tblaha Jul 14, 2025
f62552a
turn lead lag macro into profile setting. fix simulation
tblaha Jul 14, 2025
0cc0928
Make feedforward coefs be int32
tomaantjes Jul 16, 2025
7f0cd09
Add code to inject attitude setpoints for step or doublet
tomaantjes Jul 17, 2025
9f1096a
Make compilation succeed without definition of inject attitude setpoints
tomaantjes Jul 17, 2025
dcfefb5
fix learning
tblaha Jul 17, 2025
031b0f3
quickfix beun for tinywhoop (hardcode fx,fy,fz)
tblaha Jul 17, 2025
d3892c4
Add attitude injection and lead lag for attitude and rate control
tomaantjes Jul 28, 2025
e259c06
Update config file for tinywhoop
tomaantjes Jul 28, 2025
4194ca1
Add input disturbance settings (UNTESTED)
tomaantjes Jul 29, 2025
04e8ed9
Config file test 290725
tomaantjes Jul 29, 2025
37af487
Add config file for cinerat with robust gains
tomaantjes Aug 14, 2025
f76656d
Add defines for injecting attitude setpoints
tomaantjes Aug 14, 2025
041b1d8
Update cinerat settings
tomaantjes Aug 14, 2025
0458e48
Add first order filter init wiht definition of k z and p
tomaantjes Aug 25, 2025
a3f5429
Add parameters for gains-cheduling
tomaantjes Aug 25, 2025
29d9151
Add (untested) code for gain scheduling
tomaantjes Aug 25, 2025
deb13cc
Add gain scheduling to learner
tomaantjes Aug 25, 2025
e5bf3b7
Add gain-scheduling paramters to Meteor75 param file
tomaantjes Aug 25, 2025
b1d46cd
add gain_schedule.c to make file so gain constants can be used
tomaantjes Aug 25, 2025
033c579
Add a separate down signal time in the doublet input
tomaantjes Aug 28, 2025
4636a9c
Add defaults for gain scheduling parametrs
tomaantjes Aug 28, 2025
e822750
Fix 1D polynomial data
tomaantjes Aug 28, 2025
88f178e
Add gain schedule parameters to cinerat txt file
tomaantjes Aug 28, 2025
9b47488
Remove redundant comment
tomaantjes Aug 28, 2025
b6cb2a3
Update comments
tomaantjes Aug 28, 2025
a55de85
Add minimum gain for eta and omega
tomaantjes Aug 28, 2025
492351e
Log chosen gains from gain scheduling
tomaantjes Aug 28, 2025
a5b28be
Update config to use gain scheduling
tomaantjes Aug 28, 2025
21dfebe
add scheduling to indiprofile 2
tblaha Aug 28, 2025
3d787b5
Fix polynomial coefficients
tomaantjes Aug 28, 2025
13458b2
Fix cascaded gain unit
tomaantjes Aug 28, 2025
e370443
Add a override for the parameters identified by the learner
tomaantjes Sep 1, 2025
d69ae7d
Update gain schedule coefficients
tomaantjes Sep 1, 2025
6d7e797
Update config files
tomaantjes Sep 1, 2025
25a55b5
Fix pole definiition (minus sign)
tomaantjes Sep 1, 2025
7c85d6b
Add 1D interpolated values for gain scheduling
tomaantjes Sep 1, 2025
7c67c57
Use 1D interpolation gain scheduling by default
tomaantjes Sep 1, 2025
306abfd
Add parameters for a filter feedforward
tomaantjes Sep 1, 2025
92ad38d
Add a feedforward Filter directly on the eta reference
tomaantjes Sep 1, 2025
c692abf
Fix missing bracket
tomaantjes Sep 1, 2025
a8cbf93
Add ff filter to meteor75 config
tomaantjes Sep 1, 2025
3103518
Merge branch 'implement_leadlag_filter' of github.com:tudelft/indifli…
tomaantjes Sep 1, 2025
7d21fc2
Update config files
tomaantjes Sep 1, 2025
4c3c269
Add updated gains for feedforwad Filter
tomaantjes Sep 1, 2025
b43136b
add usefeedforward filter variable to indi init
tomaantjes Sep 1, 2025
40f45bf
Add initialization of feedforward filter and fix kEta scaling
tomaantjes Sep 1, 2025
25cadec
Add fallback for no filter initialzed
tomaantjes Sep 2, 2025
3bb06cc
add Check for too close pole and zero
tomaantjes Sep 2, 2025
0f6a421
Compute zFf from P and k for gainScheduleFf
tomaantjes Sep 2, 2025
1c19233
Update gain schedule based on new filter tune
tomaantjes Sep 3, 2025
01d81b9
Final 1D gain schedule result
tomaantjes Sep 3, 2025
5ce0ae3
Add pre feedforward quaternion to logging
tomaantjes Sep 4, 2025
15296f2
Initialize feedforward filter properly when gainschedule ff is on
tomaantjes Sep 5, 2025
4fddd72
Fix config file for test flight
tomaantjes Sep 5, 2025
37753a8
Properly log pre filtered attitude setpoint
tomaantjes Sep 5, 2025
69d84e6
Update headers
tomaantjes Sep 5, 2025
ef4d7e0
Fix feedforward gain scheduling
tomaantjes Sep 5, 2025
cd585cb
Final code used for experiments
tomaantjes Oct 16, 2025
a8b2090
Clean up some comments
tomaantjes Oct 16, 2025
debc20f
demo config
tblaha Jan 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"name": "MOCKUP docker",
"type": "gdb",
"request": "attach",
"executable": "${workspaceFolder}/obj/main/indiflight_MOCKUP.so",
//"executable": "${workspaceFolder}/obj/main/indiflight_MOCKUP.so",
"target": "localhost:3333",
"remote": true,
"cwd": "${workspaceRoot}",
Expand Down
13 changes: 12 additions & 1 deletion configs/profiles/CineRat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#define USE_LEARNER
#define USE_NN_CONTROL


################################################
# CRAFT SETTINGS (formerly known as "profile") #
################################################
Expand Down Expand Up @@ -204,6 +203,13 @@ indiprofile 0
set indi_attitude_gains = 3000, 3000, 1000
set indi_rate_gains = 230, 230, 150

# --- feedforward control config
# H(z) = (b0 + b1*z^-1 + b2*z^-2) / (1 + a1*z^-1 + a2*z^-2)
# Coefficient: unitless * 1000
# Coefficient order: b0, b1, b2, a1, a2
# set indi_ff_coefs = 0, 0, 0, 0, 0
set indi_ff_coefs = 292, -292, 0, -1949, 950

# attitude controller limits: (deg/s)
set indi_attitude_max_tilt_rate = 800
set indi_attitude_max_yaw_rate = 500
Expand Down Expand Up @@ -235,6 +241,11 @@ set indi_act_max = 100, 100, 100, 100 # %
set indi_wls_act_preferred_state = 0,0,0,0
set indi_wls_act_penalties = 1,1,1,1

# lead lag filtering for motor Outputs
set indi_use_motor_lead_lag = 0
set indi_act_time_constant_true_ms = 25,25,25,25
set indi_act_time_constant_des_ms = 50,50,50,50

# fx, fy, fz is N/kg / 1 * 100. Roll, pitch is Nm / (kgm^2) / 1 * 10. Yaw is Nm / (kgm^2) / 1 * 10
set indi_act_g1_fx = 0,0,0,0
set indi_act_g1_fy = 0,0,0,0
Expand Down
Loading