Commit Graph

1096 Commits

Author SHA1 Message Date
Benjamin Vedder 2018e92541
Merge pull request #369 from kubark42/convenience_laggards
[Convenience math] Catch a few laggards
2021-10-30 11:13:33 +02:00
Kenn Sebesta d97793bf7b
Update mcpwm_foc.c
Co-authored-by: kalvdans <github@kalvdans.no-ip.org>
2021-10-27 14:14:27 -04:00
Kenn Sebesta 0e58e29072 [MCPWM_FOC] Fix mislabeled variable
It's not estimated RPM, it's estimated rad/sec.
2021-10-27 14:09:10 -04:00
Kenn Sebesta 8de85899b7 [Convenience math] Capture a last couple laggards which were missed earlier 2021-10-27 14:08:35 -04:00
Benjamin Vedder 78887f35cf Added link to forum post as comment to explain factor 4 2021-10-25 12:39:54 +02:00
Benjamin Vedder 9046e4644b
Merge pull request #363 from TechAUmNu/dev_fw_5_03
Add A50S 6S and 12S hardware
2021-10-24 18:14:17 +02:00
Benjamin Vedder f1c4e713d7 Added MTPA modes 2021-10-24 18:10:00 +02:00
Benjamin Vedder 98587c961b Updated inductance calculation, include motor saliency in observer, separate setting for MTPA 2021-10-24 13:25:12 +02:00
Euan 49cfd795a3 Add A50S 6S and 12S hardware
Adds A50S.h/c and build script.
2021-10-20 10:57:11 +01:00
Benjamin Vedder 8f8d913419 Added raw sample mode 2021-10-18 21:45:47 +02:00
Benjamin Vedder d041761f0e Updated mcconf signature 2021-10-16 13:01:48 +02:00
Benjamin Vedder 7265f790c6 Updated changelog 2021-10-16 12:54:57 +02:00
Benjamin Vedder 8cf082e0e0 Better bus current estimation, HFI max voltage and duty scaling fix 2021-10-16 12:54:33 +02:00
Benjamin Vedder 1763fd59d3 Fixed loss calculation 2021-10-16 12:53:49 +02:00
Benjamin Vedder b1f564c3bb
Merge pull request #352 from kubark42/convenience_math
Use convenience macros for deg/rad conversions
2021-10-15 22:35:47 +02:00
Benjamin Vedder e8ae30c9d9 Merge branch 'dev_fw_5_03' of github.com:vedderb/bldc into dev_fw_5_03 2021-10-15 22:25:25 +02:00
Benjamin Vedder d8a99fd0f1 Inductance and resistance measurement and scaling fixes, various other fixes 2021-10-15 22:25:07 +02: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
Benjamin Vedder badaa2ff7d
Merge pull request #360 from avlasic/dev_fw_5_03_nrf
blackmagic: Support more nrf5 target revisions
2021-10-13 17:30:23 +02:00
Andrej Vlašić 378b1b7d20 blackmagic: Support more nrf5 target revisions 2021-10-13 15:14:53 +02:00
Benjamin Vedder b6eb5852aa
Merge pull request #346 from afzalmam/dev_fw_5_03
PAS: add constant torque control type
2021-10-11 10:08:24 +02:00
Benjamin Vedder 583f712424
Merge pull request #350 from dimpolo/mpu_status_fix
Fix wrong status in mpu_status terminal command
2021-10-10 18:04:37 +02:00
dimpolo 27782f23c3
Fix wrong status in mpu_status terminal command 2021-10-07 22:55:00 +02: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
Benjamin Vedder c0fa922251
Merge pull request #344 from RadinnAB/bm_mem_write
blackmagic: Add cmd to write to target memory.
2021-10-02 09:30:33 +02:00
Johan Svard add855f6e6 blackmagic: Add cmd to write to target memory. 2021-10-01 16:29:57 +02:00
Benjamin Vedder 78e10ccb7b
Merge pull request #342 from tharon-rivera/dev_fw_5_03
Support for Spintend ubox single
2021-10-01 09:50:47 +02:00
Benjamin Vedder 6f1b674e22
Merge pull request #340 from mark99i/dev_fw_5_03
Fixes in traction control for scooters
2021-10-01 09:49:08 +02:00
Tharon Rivera 11ad3f862f Support for Spintend ubox single 2021-09-24 20:58:55 -04:00
Benjamin Vedder e7d22911f8 More stormcore power switch fixes 2021-09-15 18:46:08 +02:00
Benjamin Vedder 40ccb48beb Added another nrf revision to bm 2021-09-15 17:49:58 +02:00
Benjamin Vedder bec2534559 Fixed stormcore CAN shutdown 2021-09-15 17:49:09 +02:00
Benjamin Vedder d898d3bf9a Lowered default switching frequency 2021-09-15 17:48:44 +02:00
Mark 2f26f3af37 fixes in traction control for scooters 2021-09-09 01:16:58 +03:00
Benjamin Vedder 0109693e37 Changed CAN_PACKET_POLL_ROTOR_POS to respond with the controller id 2021-08-30 10:36:08 +02:00
Benjamin Vedder c3f397ae4c Added comments about the CAN packet types 2021-08-30 10:29:41 +02:00
Benjamin Vedder a970269a28 Moved CAN_PACKET_POLL_ROTOR_POS to addressed packets 2021-08-30 10:26:10 +02:00
Benjamin Vedder 0bc935b27f Added break to new can command 2021-08-30 10:21:39 +02:00
Benjamin Vedder dbeb8f08e2
Merge pull request #336 from manoukianv/PollEncoderOverCan
add CAN command CAN_PACKET_POLL_ROTOR_POS
2021-08-30 10:18:26 +02:00
Vincent Manoukian f887c30e86 Add a poll CAN message. 2021-08-30 09:39:21 +02:00
Benjamin Vedder 31d524f7fa Made local functions static 2021-08-22 12:05:08 +02:00
Benjamin Vedder 91a19fa8b3 IMU improvements 2021-08-22 11:51:03 +02:00
Benjamin Vedder 86cbc92b8d Fixed regression in sensorless braking 2021-08-20 21:36:44 +02:00
Benjamin Vedder 44053fb244
Merge pull request #333 from Mitchlol/tiltback_config
Tiltback config cleanup
2021-08-20 19:08:30 +02:00
Benjamin Vedder 91e299a593
Merge pull request #334 from surfdado/zescboards
ZESC HW Support: Raiden7 and Warrior6
2021-08-20 19:08:14 +02:00
Benjamin Vedder b7b44cf2b6 Fixed can init check when can is disabled 2021-08-20 15:13:07 +02:00
Benjamin Vedder 36c9db6718 Dual motor shutdown fix 2021-08-20 14:59:36 +02:00
Mitch Lustig 64ed53f473 Fix balance tiltback default speeds 2021-08-19 17:19:21 -07:00
Dado Mista 5a56e8bd57 ZESC Raiden7 Support
Signed-off-by: Dado Mista <dadomista@gmail.com>
2021-08-19 15:57:15 -07:00