Mitch Lustig
1c4d4a88c1
Add accel filter
2022-09-27 21:30:15 -07:00
Mitch Lustig
2127da0c0f
Balance App: Add I-Term Limiter, Remove D-Term Biquad Filters
2022-09-05 18:44:14 -07:00
Benjamin Vedder
0bd69045d1
Merge pull request #521 from Mitchlol/balance_turntilt_bugfix
...
Fix balance app turntilt angle limit to be bi-directional
2022-09-03 09:24:19 +02:00
Mitch Lustig
9df002410a
Clamp balance app output to motor config limits
2022-08-30 01:13:42 -07:00
Mitch Lustig
a8186ec054
Fix turntilt angle limit to be bi-directional
2022-08-30 00:20:01 -07:00
Dado Mista
20796a66c1
Balance app: dual adc switch (single combined switch) support
...
Support for combining both adc switches into a single one.
Signed-off-by: Dado Mista <dadomista@gmail.com>
2022-07-16 13:54:47 -07:00
Mitch Lustig
af4bcf68b6
Add cascading PID to the balance app
2022-04-21 00:35:15 -07:00
Kenn Sebesta
cf6f32332d
[Utils] Update the header includes
2022-03-23 20:25:37 -04:00
Benjamin Vedder
9c484d01e4
Decreased stack sizes to save ram
2022-01-16 21:57:12 +01:00
Dado Mista
015dce3845
Balance App: bugfix for speed based variable tiltback config
...
Avoid division by 0 when variable tiltback is not set
Signed-off-by: Dado Mista <dadomista@gmail.com>
2022-01-06 10:32:35 -08:00
Kenn Sebesta
bec06ac85a
[Utils] Change convenience multiplication factors into convenience MACROs
2021-10-13 14:18:05 -04:00
Kenn Sebesta
aeb5d74488
[Utils] Use convenience macros for deg/rad conversions
2021-10-13 11:52:04 -04:00
Mitch Lustig
fafe047730
Tiltback updates
2021-08-18 00:45:51 -07:00
Dado Mista
f46880d037
Balance: configurable speed/angle for each tiltback type
...
Signed-off-by: Dado Mista <dadomista@gmail.com>
2021-07-29 17:16:32 -07:00
Dado Mista
02caad398a
Biquad filters: add config/reset functions
...
Also, swap bq_process arguments mimicking C++
Signed-off-by: Dado Mista <dadomista@gmail.com>
2021-07-06 11:25:23 -07:00
Davorin Mista
ec4eb577be
fixup! Balance App: introduce new speed based variable tiltback
2021-06-30 16:17:57 -07:00
Davorin Mista
9f086cfe6f
fixup! Balance App: introduce new speed based variable tiltback
2021-06-30 12:50:43 -07:00
Dado Mista
813d5b15fa
Balance App: introduce new speed based variable tiltback
...
Nose angle adjustment, similar in purpose as constant tiltback
but it is proportional to erpm aka speed.
Signed-off-by: Dado Mista <dadomista@gmail.com>
2021-06-25 21:42:37 -07:00
Mitch Lustig
d561c2669b
Add balance loop time correction
2021-06-06 14:01:42 -07:00
Mitch Lustig
e2fd6f4b67
Simplify balance app startup sleeps
2021-06-05 17:50:50 -07:00
Mitch Lustig
3e08ca00f2
Add support for debugging to the experiments tab
2021-06-05 17:14:23 -07:00
Mitch Lustig
de9400e461
Add brake timeout
2021-06-05 16:05:19 -07:00
Mitch Lustig
d68fc0ff4f
Balance: Updates
...
-Fix D term to use angle rather than error (which includes tilt steps)
-Switch TT to Biquad (Clear z1 z2)
-Split TT Relax speed
-Add Biquad to D term
-Add console command to graph specific variables
-Add console command to dump realtime data from specific variables
2021-06-01 03:20:00 -07:00
Mitch Lustig
1711ff953a
Balance app cleanup
...
Increase motor timeout to account for sleep inaccuracy and whatever else.
Set motor timeout to a variable, to reduce calculation repetition.
Only calculate motor timeout after config is set, so we never divide by 0.
Reorder functions so exposed functions are at the start.
Make app's internal functions static.
2021-05-23 14:58:47 -07:00
Mitch Lustig
b237cf4b9f
Add High Pass FIlter, implement current off delay, refactor constanttilt
2021-05-16 14:53:03 -07:00
Mitch Lustig
c9ed013f13
Fix low speed Full switch faults, Fix Booster, Improve turn/torque tilts
2021-04-17 18:05:24 -07:00
Mitch Lustig
273f067db3
Code Cleanup
2021-04-07 22:42:21 -07:00
Mitch Lustig
af941b3182
Little cleanup
2021-04-07 00:30:37 -07:00
Mitch Lustig
08f27f433c
Add turn tilt
2021-04-06 02:18:32 -07:00
Mitch Lustig
175ed9e21c
Merge branch 'dev_fw_5_03' into brc_mod_1
2021-04-01 20:57:44 -07:00
mattbutlar
fae1466601
Add comment on value mapping
2021-04-01 14:35:57 -07:00
mattbutlar
bb7b049d86
Remove loop timing test
2021-04-01 09:53:03 -07:00
mattbutlar
b61049b18e
Change roll comp math to avoid external deps
2021-03-30 23:20:35 -07:00
mattbutlar
4f74c179a2
Simplify roll comp math
2021-03-29 14:42:30 -07:00
Mitch Lustig
9f41e4407f
Fix compiler warning
2021-03-28 14:41:05 -07:00
Mitch Lustig
decdc7e7d6
Add torquetilt
2021-03-27 20:13:22 -07:00
Mitch Lustig
3b9fe6ec67
Add Booster
2021-03-27 14:00:55 -07:00
Mitch Lustig
49e624ba3b
Remove boring features
2021-03-27 12:17:10 -07:00
mattbutlar
583e62933d
Add roll compensation to the balance app
2021-03-14 22:57:47 -07:00
Mitch Lustig
27e1d11f4a
Lil fixes
2020-07-04 03:35:19 -07:00
Mitch Lustig
0f5c6f5379
Add confgen and running states
2020-07-04 00:11:20 -07:00
Mitch Lustig
7db04df582
Add all the variables
2020-07-03 20:33:15 -07:00
Mitch Lustig
8299445c66
Basic feature set complte
...
Fix some bugs
Add D-Term PT1 Filter
Add all the fault delays
Setpoint clamp no longer breaks tiltback
Add configurable constant tiltback erpm
2020-07-02 01:07:54 -07:00
Mitch Lustig
b61a0ea7be
Add additional timer for switch half state
2020-06-19 01:28:52 -07:00
Mitch Lustig
da7b3a0ffb
Mix of stuff (Not a working state)
...
Organize vars
Hack in dterm PT1
Improve faults
Remove dead state
2020-06-19 01:00:37 -07:00
Mitch Lustig
24afd4e6f3
Balance sprint 3
...
-Can steering based on speed
-Can steering current clamp
-Min rpm for half switch state fault
-Soft mode tuning (pitch angle affinity, setpoint affinity, setpoint limit)
-Reset I value on faults issue #117
-fix startup tiltback
2020-03-15 23:18:34 -07:00
Mitch Lustig
6d29b6741f
Use ADC for switches
2020-02-23 13:34:51 -08:00
Mitch Lustig
d4f6036de7
Implement nose angle adjustment
2020-02-23 10:23:19 -08:00
Mitch Lustig
2c07512091
Add can bus, 2 wheel steering & stabilization, brake, dead & fault dealy
2020-02-23 00:22:21 -08:00
Mitch Lustig
343dba369a
Remove axis config
2019-09-21 01:07:31 -07:00