Commit Graph

262 Commits

Author SHA1 Message Date
Benjamin Vedder 9ec5fec4cf Added lispbm gpio-support for adc1 and adc2 2022-05-03 22:53:10 +02:00
Benjamin Vedder 8cb88245bb Added lisp extension load support for custom apps and quite test of it 2022-04-20 17:16:52 +02:00
Benjamin Vedder b91034dcc7 Fixed possible problem? 2022-04-19 17:30:08 +02:00
Teslafly a22efa6c90 fix offset on start for 180 mode 2022-04-11 01:02:37 -05:00
Teslafly fa3eb7a084 have 180 and 360 degree based control mode for center or bottom safestart. 2022-04-11 00:12:00 -05:00
Teslafly 2b6f731ccd clean up comments 2022-04-10 23:11:58 -05:00
Teslafly 0af253693c update conf and single turn by default 2022-04-09 15:15:24 -05:00
Teslafly cf928c28cb revert datatype reordering 2022-04-09 14:16:36 -05:00
Teslafly f09df46465 add headers. fix compiler complaints. 2022-04-07 02:22:00 -05:00
Teslafly 306e310e58 add safe start method to roughly match motor position before enabling. 2022-04-07 02:10:59 -05:00
Teslafly 690e7fd37a first try with simplified position setter. 2022-04-07 00:54:45 -05:00
Benjamin Vedder 3a530ac3f7 App ADC abs min and max voltage limits 2022-04-01 18:43:03 +02:00
Benjamin Vedder a3401aae94 Added common utils header and made it possible to use more files in custom apps 2022-03-29 14:04:38 +02:00
Kenn Sebesta cf6f32332d [Utils] Update the header includes 2022-03-23 20:25:37 -04:00
Benjamin Vedder d00d1f6b6f Added lisp remote support 2022-03-13 10:15:24 +01:00
Jakub Tomczak 6a9bd07c72 Merge remote-tracking branch 'origin/master' 2022-01-27 10:28:16 +01:00
Jakub Tomczak da4b3e0edd Merge branch 'master' into dev_fw_5_03 2022-01-21 15:07:44 +01:00
CTSchorsch 786cf09889 update hwconf to new hardware version (hw7) 2022-01-20 13:22:39 +01:00
Benjamin Vedder 9c484d01e4 Decreased stack sizes to save ram 2022-01-16 21:57:12 +01:00
Benjamin Vedder 988c68b3a7
Merge pull request #395 from surfdado/speed_tb_bugfix
Balance App: bugfix for speed based variable tiltback config
2022-01-09 20:27:53 +01:00
Jakub Tomczak 2a120615be encoders to encoder refactor 2022-01-09 17:10:40 +01:00
Benjamin Vedder af55c79a2a Renamed foc_f_sw to foc_f_zv 2022-01-06 20:44:00 +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
Marcos Chaparro 627c12b1ca bbshd: Ruggedize PAS against vibrations
Also includes an update to set power limits from other threads (like a display) and
prepares support for PAS torque sensors.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-28 11:17:53 -03:00
Jakub Tomczak 4743194894 old encoder files deleted 2021-12-20 14:18:51 +01:00
Benjamin Vedder a8f989eb64 er updates 2021-12-08 12:04:19 +01:00
Benjamin Vedder b302c1a614 er update 2021-12-08 10:12:23 +01:00
Benjamin Vedder 4da6b603d4 er updates 2021-12-06 16:55:58 +01:00
Benjamin Vedder a4201139f2 Minor cleanup 2021-11-26 18:06:07 +01:00
Benjamin Vedder 8457331640 Fix vesc remote cruise control under erpm limit 2021-11-13 00:56:01 +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
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
Afzal b1ec844b2f PAS: add constant torque control type
For gearless electric bicycles, riding up the slope and during start,
good torque support from the motor helps the rider ride with less
effort. Pedal assist based on cadence provides higher torque with higher
pedalling speed. In the situations mentioned above, where user naturally
pedals slow, aid from cadence based system is less. On a geared setup,
changing to low gear comes to the rider's help.

Here another control type is provided - Constant Torque, whenever the
rider pedals, motor would provide constant torque. The torque value can
be set using 'PAS max current' setting thus acting as fine PAS assist
level.

This type of control is similar to 'Basic PAS, constant throttle' of
'PAS Control Schemes' [1], with the difference that throttle setting
in that article corresponds to speed, while here torque.

Also riding experience on some of the popular (not high end) e-bicycles
having PAS indicates they might be having this kind of control
internally.

[1] https://ebikes.ca/learn/pedal-assist.html
2021-10-05 13:05:31 +05:30
Mark 2f26f3af37 fixes in traction control for scooters 2021-09-09 01:16:58 +03:00
Mitch Lustig f91872bf40 Merge branch 'dev_fw_5_03' into tiltback_config 2021-08-19 13:27:31 -07:00
Mitch Lustig fafe047730 Tiltback updates 2021-08-18 00:45:51 -07:00
Benjamin Vedder fc6825a1ae Added safe start modes 2021-08-16 17:48:06 +02:00
Dado Mista 848cb3165d Balance: configurable speed/angle for each tiltback type
Signed-off-by: Dado Mista <dadomista@gmail.com>
2021-08-15 16:30:11 -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
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