Commit Graph

51 Commits

Author SHA1 Message Date
Benjamin Vedder d8e3128e46 Optimization updates, added pwm-driver and added pwm extensions 2024-04-05 19:26:36 +02:00
Benjamin Vedder ebb0b339bb Use size-optimization on more files where performance is less important 2024-04-01 10:25:56 +02:00
Benjamin Vedder ac7df4a7f6 Removed app_balance in favor of the balance package 2023-06-19 13:58:22 +02:00
Benjamin Vedder 572343fd18 Updated changelog and some tweaks 2023-03-29 12:04:12 +02:00
Benjamin Vedder 7d90136465 Start ppm-decoder on get-ppm if it is not already running 2022-11-19 11:46:59 +01:00
Benjamin Vedder 40272fe494 Explicit initialization of appconf 2022-11-17 17:20:19 +01:00
Benjamin Vedder e99ae0562b Re-initialize servo out when needed 2022-11-03 15:46:33 +01:00
Benjamin Vedder ff427594e9 Added COMM_SET_APPCONF_NO_STORE and only restart app and IMU when needed 2022-10-30 14:48:22 +01: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
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
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
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
CTSchorsch cdb8e82c32 - Add driver for SX1278 LoRa boards, eg. HopeRF RFM95W (driver by Wojciech Domski, https://github.com/wdomski/SX1278)
- Add a simple bool isInitialized() to commands.c, to check if commands are initialzied
- Add hwconf for GESC, hobby open source ESC (https://github.com/CTSchorsch/gesc) including a simple double pulse test function
- Add app_dpv.c to read out a simple I2C magnetic field sensor and two hall sensors to control a underwater scooter
2021-03-27 14:15:22 +01:00
Benjamin Vedder ecb43e70bb Cleanup 2021-01-13 21:51:55 +01:00
Jeffrey M. Friesen e862f29298 Re-wrote uart driver a bit 2021-01-05 09:39:45 -08: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
Till Rosenband 82e5bcd845 Verify FLASH integrity of MC and APP config with CRC.
* Currently the FW code has CRC checks, but configs are also important!
* This helps maintain FLASH integrity when the config pages are occasionally
  re-written due to odometer updates (later commit).
* If the config CRC checks fail, store the fault and fall back to default config.
* New 'crc' terminal command displays CRC values.
2020-10-04 00:31:31 -04:00
Mitch Lustig 644e22a459 Add uart app to balance app when using internal IMU 2019-09-21 00:07:20 -07:00
Mitch Lustig 1cc9a9b14c Re-implement startup AHRS config override
So my EUC stops trying to kill me when i boot it up laying down
2019-09-08 22:38:09 -07:00
Mitch Lustig 72e9c24bd7 Make axes configurable, remove offset management 2019-09-08 18:32:53 -07:00
Mitch Lustig 98652977a2 Merge master 2019-09-08 11:42:28 -07:00
Benjamin Vedder 602db7435b FW3.59. Many updates, see changelog for details 2019-09-03 20:39:05 +02:00
Mitch Lustig a2231593b2 Start on better gyro config 2019-08-25 23:49:33 -07:00
Mitch Lustig c3cf302ba3 FIx thread stopping synchronization. FIx gyro config not being applied. 2019-08-10 21:52:21 -07:00
Mitch Lustig 271dd21dab start in balanace app 2019-07-27 21:25:56 -07:00
Benjamin Vedder 65298263b6 75/300 R2 support, terminal sync cmd, IMU support, option to disable permanent UART, collected timer functions in one place 2019-03-10 14:57:42 +01:00
Benjamin Vedder 123bb00ab4 Major 2019 update 2019-02-18 19:30:19 +01:00
Benjamin Vedder 5348662197 FW 3.32: Configurable CAN baud rate 2017-11-08 14:07:35 +01: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 d2f6d87560 FW 3.0: HW60 support, 3 low/high side shunt support, permanent NRF option 2016-06-27 17:29:09 +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 ff090fd4e0 FW 2.3: MAJOR UPDATE: FOC!! 2015-12-08 21:01:23 +01:00
Josh Dellay c756f00de0 Adding BLDC documentation using Doxygen 2015-09-16 12:26:52 -07: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 5a5ccfb4c3 ADC app added, nunchuk RPM filter, FW version added, feedback on appconf and mcconf set 2015-05-04 23:25:43 +02:00
Benjamin Vedder 2ccb52514e Encoder support, NRF nunchuk support 2015-04-11 10:07:36 +02:00
Benjamin Vedder 828cdd92f8 Chuk and PPM config structs, phase advance fixes and implementation for delay comm mode, CAN fixes and status message implementation, multi-esc mode for PPM and Chuk, traction control for PPM and chuk, CAN id config, multi-esc and traction control config, ADC sampling change, hall-sensor read bug fix for HW45+ 2015-02-19 21:20:07 +01:00
Benjamin Vedder 8dc8ffe2c7 Nunchuk ramping, ws2811 configurable pin (Requieres latest BLDC_Tool) 2014-12-20 12:52:38 +01:00
Benjamin Vedder f7cda79d1b HW45-implementation, temp-protection, nunchuk-fix, i2c-fixes 2014-10-19 19:31:06 +02:00
Benjamin Vedder 81a6d84113 Nunchuk implementation (Nyko Kama tested), mah and wh counting 2014-10-19 01:00:53 +02:00
Benjamin Vedder 2119242b43 Soft RPM limit for current mode in ppm app 2014-09-21 19:29:26 +02:00
Benjamin Vedder 10bbe73206 Global timeout implementation 2014-09-20 13:41:18 +02:00
Benjamin Vedder d6beda7b47 Complete servo-decoding rewrite, common command module, full access to everything over uart, more ppm options 2014-09-20 03:22:38 +02:00
Benjamin Vedder 2e723ece6f App configuration, eeprom emu fix, reboot command 2014-09-18 23:00:14 +02:00
Benjamin Vedder 6d4e55051c Prepared applications for runtime configuration 2014-09-17 21:05:57 +02:00
Benjamin Vedder 0a02f2e017 Added an uart communication application and extended the packet handler 2014-07-19 11:41:16 +02:00