Commit Graph

44 Commits

Author SHA1 Message Date
Benjamin Vedder b08e35e1b4 Save space where speed matters less 2024-04-01 00:47:40 +02:00
Benjamin Vedder c5b8bb7feb Fixed ADC override bug 2024-02-01 12:37:06 +01:00
Benjamin Vedder b1bad56859 Also apply filter and range check to override value 2023-10-31 08:59:46 +01:00
kawaiinekololis f08c8602fe fixes detached ADC1 not being mapped 2023-10-31 04:35:18 +01:00
Benjamin Vedder 2a783d6e5f Fixed some app adc override behavior 2023-10-01 21:21:30 +02:00
Benjamin Vedder 9e6a9648df Do range check earlier so that it works when app output is disabled 2023-10-01 19:48:37 +02:00
Benjamin Vedder 2d7ab3e1cf Added extension to check if the adc-app voltage is within range 2023-09-26 13:33:23 +02:00
Benjamin Vedder 7487e5fd44 Added setting to limit input current with field weakening, added timeout to lbm app adc detach 2023-06-08 04:31:36 +02:00
Benjamin Vedder 478a385bf7 Support for detaching only one of the ADC channels 2023-03-29 11:51:17 +02:00
Benjamin Vedder c5bdf37d87 ADC: Only configure button pins when they are used 2022-11-04 11:41:18 +01:00
Benjamin Vedder 35d2dfcff2 App adc button bitfield and cc disable support 2022-09-27 22:33:40 +02:00
Netzpfuscher 8268197813 Added commands to detach peripherial from ADC-App and set values from LISP 2022-06-05 07:42:16 +02:00
Benjamin Vedder 9ec5fec4cf Added lispbm gpio-support for adc1 and adc2 2022-05-03 22:53:10 +02:00
Benjamin Vedder 3a530ac3f7 App ADC abs min and max voltage limits 2022-04-01 18:43:03 +02: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
Benjamin Vedder a4201139f2 Minor cleanup 2021-11-26 18:06:07 +01:00
Benjamin Vedder e9cf6eb4e8 Added fast moving average filter approximation, updated ADC app to use it 2021-10-31 13:40:43 +01:00
Mark 2f26f3af37 fixes in traction control for scooters 2021-09-09 01:16:58 +03:00
Benjamin Vedder fc6825a1ae Added safe start modes 2021-08-16 17:48:06 +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
Benjamin Vedder 2133d21fbc Avoid numerical instability when utils_map is used over a range that approaches 0 2021-03-27 11:18:47 +01:00
Marcos Chaparro 33b5d5c1ba Pedal assist support (PAS)
This commit enables cadence-based pedal assist for ebikes using
quadrature-style pedal speed sensors.

There are 2 operation modes:
* PAS only: Motor current is based only on pedal feedback
* ADC + PAS: The code will use both ADC and pedal feedback and use
the strongest command to provide seamless overlap when the user is
pedalling and requests extra torque with the throttle.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-12-07 17:06:36 -03:00
Benjamin Vedder ceb8b7bf7d HW60_MK3 support, shutdown fix, added COMM_SET_CURRENT_REL, ramp fix, PPM timeout fix, IRQ prio fix 2019-12-19 16:55:38 +01:00
Steffen Arntz f5b1653455 Enable the use of the reverse button in App-ADC with PID + rev button.
previously only the cc button was working, even if rx/tx as buttons was available.
2019-08-22 12:45:21 +02:00
Benjamin Vedder 30aabb77d7 Detect FOC fix, adc brake multi fix, make ppm pulses invalid above 150 percent 2019-07-01 17:17:49 +02:00
Gavin Miller 9deee721f5 Fix indentation, restore proper include to app_custom 2019-04-09 19:12:09 -06:00
tipsmiller 583e71464e Update app_adc with new control scheme 2019-04-09 16:11:11 -06:00
Benjamin Vedder f9ce429447 Ramping updates 2019-03-01 17:18:07 +01:00
Benjamin Vedder 123bb00ab4 Major 2019 update 2019-02-18 19:30:19 +01:00
Benjamin Vedder 5a189290bc FW 3.34: PID POS in values, inverted direction angle normalization, relative current mode in APP_ADC 2018-01-24 09:39:06 +01:00
Benjamin Vedder 6277cf74ca FW 3.31: Acc temp dec option, PID for APP_ADC 2017-10-27 21:29:12 +02:00
Benjamin Vedder 79bfbe6234 FW3.28: dual throttle curves, ntc beta factor config, board file added 2017-09-06 21:13:28 +02:00
Benjamin Vedder f141157358 First official commit after the VESC Project release 2017-09-04 21:12:43 +02:00
Benjamin Vedder 5dbc94c525 FW 3.7 2016-11-04 15:18:34 +01:00
Benjamin Vedder ed61c4d332 FW 2.18: Better FOC sensorless startup, app adc safety fix 2016-05-19 19:24:01 +02:00
Benjamin Vedder d52906fbe8 FW 2.15: NRF configuration, PPM and ADC app duty mode scaling to max duty 2016-02-09 12:25:13 +01:00
Benjamin Vedder 6d33ac83b6 FW 1.13: APP_ADC input 2, interface locks during detection, inductance detection fix 2016-02-02 17:19:37 +01:00
Lucas Pleß 294d80b777 added ADC2 analog brake option 2016-02-02 16:28:55 +01:00
Benjamin Vedder ff090fd4e0 FW 2.3: MAJOR UPDATE: FOC!! 2015-12-08 21:01:23 +01:00
Benjamin Vedder c4ff81e849 Ported to ChibiOS 3, refactoring, cleanup, added safe start delay after fault for PPM app, removed unused ST libraries 2015-10-08 23:09:39 +02:00
Benjamin Vedder 58d892935d PPM dec fix, current sampling updates, ADC cruise control, commutation fix, higher switching frequency, refactoring 2015-08-23 18:26:05 +02:00
Benjamin Vedder a89ad0f1f1 Fix bug #7, detection now works while apps are active 2015-06-09 06:11:41 +02:00
Benjamin Vedder 5a5ccfb4c3 ADC app added, nunchuk RPM filter, FW version added, feedback on appconf and mcconf set 2015-05-04 23:25:43 +02:00