Commit Graph

222 Commits

Author SHA1 Message Date
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
Benjamin Vedder 029bd88981 Make CAN-enum 32 bits 2021-06-19 19:40:07 +02:00
Benjamin Vedder 32af87b08a Added aux out modes 2021-06-19 17:50:44 +02:00
Benjamin Vedder 186e1ce40a Disable vesc remote control by default and enable it after pairing 2021-06-15 12:58:10 +02: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
Benjamin Vedder 007eb9bb92 Updated er qml 2021-05-29 14:35:54 +02:00
Benjamin Vedder 25be00df54 Updated er and finn apps 2021-05-29 14:09:26 +02:00
Benjamin Vedder 6dd35cbbc3 Updated er-app 2021-05-26 22:09:50 +02: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
Benjamin Vedder e74eb17429 Simplified QML 2021-05-23 20:19:08 +02:00
Benjamin Vedder 3e7bd17d7d er updates 2021-05-23 15:42:30 +02:00
Benjamin Vedder eca6a233d5 er updates 2021-05-23 14:46:49 +02:00
Benjamin Vedder 19d2a4078c Added qmlui to conf 2021-05-22 21:40:19 +02:00
Benjamin Vedder 6d945cb4ab Added er qml config 2021-05-22 21:01:33 +02:00
Benjamin Vedder 1c83713540 Updated er app 2021-05-21 00:00:28 +02:00
Mitch Lustig b237cf4b9f Add High Pass FIlter, implement current off delay, refactor constanttilt 2021-05-16 14:53:03 -07:00
Benjamin Vedder 77af43935a Removed outdated LED-support 2021-05-11 09:57:27 +02:00
Benjamin Vedder 24b8a6f100 Change default DRV OC mode for HD60 and HD75 2021-05-07 09:49:01 +02:00
Benjamin Vedder f25144cc30 Removed iterative observer, added p_pid_gain_dec_angle 2021-04-26 23:14:05 +02:00
Benjamin Vedder 36d32ed96d
Merge pull request #291 from Mitchlol/balance_4.2
Balance 4.2
2021-04-20 15:53:12 +02:00
Marcos Chaparro d8d2088137 app adc: allow hardwares to override the brake input
With this hook the brake can be overriden from the hw_*.c file without
polluting the app configuration UI.

Some examples of commanded braking:
* Tilt/crash sensor
* Gear shift sensor
* Emergency stop
* Kill switch

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-04-19 11:33:57 -03:00
Mitch Lustig c9ed013f13 Fix low speed Full switch faults, Fix Booster, Improve turn/torque tilts 2021-04-17 18:05:24 -07:00
Benjamin Vedder 89d854f4c4 Added Finns app 2021-04-12 19:46:37 +02:00
Benjamin Vedder 998bc17ba7 Cleanup 2021-04-12 09:48:29 +02:00
Benjamin Vedder ca8e7b4f05
Merge pull request #271 from CTSchorsch/dev_05_03
- Add driver for SX1278 LoRa boards, eg. HopeRF RFM95W (driver by Woj…
2021-04-12 09:35:38 +02:00
Benjamin Vedder 1f1e1e99fb
Merge pull request #276 from Mitchlol/balance_4.1
Balance 4.1
2021-04-08 18:07:54 +02: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
Benjamin Vedder a9c2a4fcc9 Added ER application 2021-04-06 14:12:57 +02: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
CTSchorsch 4f048442d0 cleanup spaces 2021-03-31 19:46:31 +02:00
Benjamin Vedder fcb7e12158 Made servo output a config option 2021-03-31 16:28:46 +02:00
CTSchorsch 755ff98ec9 fix spaces, delete lines and default config 2021-03-31 14:10:27 +02:00
Benjamin Vedder 69d3a1ba33 Only change UART pin mode when needed 2021-03-31 09:54:59 +02: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
CTSchorsch 331494291d - move lora files from hwconf/ to lora/
- modify Makefile and add lora/lora.mk
- hopefully have all idents fixed
- restore commands.c and add new function again
- fix memory leak bug in gesc.c
- rfm95w.c add delay in while loop
- add gesc to build_all / rebuild all works
2021-03-27 21:13:24 +01:00