9cf4988cde
cleanup
2019-06-26 19:28:35 +02:00
bf9725159d
► Added speed threshold to enable Phase Advance
...
- Phase Advance is enabled only when Motor Speed > n_motPhaAdvEna (400 rpm). This prevents that during a kick-down (100% duty cycle) the Phase advance kicks in even though we are running at low speed.
- This update improves the acceleration response
- no impact on code execution time
2019-06-11 21:24:08 +02:00
43b4f4aa20
► Warning fixes
...
- Changed all float constants to use f suffix to prevent double conversions
- Removed compile warnings due to HAL_GPIO_* related calls
- Added comms.h with prototypes for functions which were used in main()
- Casts and externs to fix compile warnings in various files.
- Made a bunch of file-local variables static.
- Fixed buzzerFreq/buzzerPattern extern declarations with correct type (uint8_t)
- Since this is C, void func() { } needs to be void func(void) { }, so fixed that in all instances.
These updates follows from @trollcop
2019-06-10 20:18:37 +02:00
b90a2503b4
► New BLDC control
...
- auto-code regenerated
2019-06-06 22:05:57 +02:00
fe4bd76d7e
► Improved controller: faster and better overall
...
- the controller is faster and more light in memory footprint
- motor control is now done intependenly using Reusable code generation setting in Simulink
- fixed bug when chaging direction fast
2019-06-05 22:39:30 +02:00
ac0e680369
First release commit, dynamic tests done!
2019-05-28 21:38:39 +02:00
a732c60d2b
deleted
2019-05-26 15:36:29 +02:00
febbfc823c
Added new BLDC motor control
2019-05-26 15:33:57 +02:00
e56b5cbdb3
Update config.h
...
fixed c+p error? DEBUG_SERIAL_USART2 is not present in the whole file .. guess it is CONTROL_SERIAL_USART2?
2018-09-13 21:02:23 +02:00
1a49e2cced
fixed comment in battery calibration. it is serial debug channel 5, not 4.
2018-09-07 19:53:35 +02:00
a6c83f0e67
Update config.h
2018-08-09 16:07:06 +02:00
b67066dfc1
Changed DELAY_IN_MAIN_LOOP to default value
2018-08-09 15:59:14 +02:00
0243eb347e
added board temperature calibration, warning and poweroff (rene-dev and me); rearranged config.h; fixed backwards beep overflow; removed duplicate battery-adc-code (rene-dev); improved battery voltage measurement precision; put poweroff procedure to a separate function; poweroff button now only work if field weakening is 0 (otherwise everything will explode)
2018-07-29 17:30:49 +02:00
612dce68ea
fixed serial debug output, backward beep and low bat beeps work now together, low bat beeps can now be disabled, added inactivity timeout
2018-07-25 12:54:13 +02:00
2932480274
improved low bat detection on other then 10s
2018-07-22 20:34:04 +02:00
3d0ed7e9c0
now you set battery alert levels in volt per cell and set number of cells. less annoying battery alert beeps. small cleanup.
2018-07-21 17:37:02 +02:00
dd5a128199
added battery voltage calibration, see config.h
2018-07-21 13:56:23 +02:00
ac87327ebe
fixed comments on uarts in config.h
2018-07-21 10:20:57 +02:00
db9194e9bd
FIX: Arduino example code in config file
2018-06-13 09:55:34 +02:00
2d2a9c4d11
UPD: usart control now with steer and speed as control values. Btw this is not tested yet but I don't see why it shouldn't work ;)
2018-06-11 14:48:58 +02:00
b3fe48a832
ADD: control via uart. Send two int16 (4 bytes) to usart 2 to control the motors with an arduino or a raspberry pi
2018-06-11 14:29:39 +02:00
88b26123c2
added lots of comments; added some validation to config.h; improved adc-input: added min and max adc-values, added poti calibration, added adc-values to debug-output; added support for a second button connected to adc2; added INVERT_R_DIRECTION and INVERT_L_DIRECTION; updated readme
2018-05-27 22:16:52 +02:00
ca525abe96
ADD: re-initialize I2C after comms error
2018-05-11 22:04:12 +02:00
206f67631a
ADD: example code for turbo boost
2018-05-08 13:06:10 +02:00
312d08b944
FIX: license information
2018-05-08 13:02:20 +02:00
7337a8ae7e
ADD: support for chinese nunchuck
2018-05-06 20:11:53 +02:00
0172976057
ADD: make unlock and make flash to Makefile
2018-04-25 19:27:15 +02:00
5a3ed507b2
ADD: UVLO in config
2018-04-09 22:03:19 +02:00
de8957536c
UPD: more universal codebase for different vehicles
2018-04-09 21:43:59 +02:00
fd49c006f7
ADD: Wii Nunchuck control
2018-04-08 00:03:35 +02:00
ff224a2509
adc in
2018-02-18 13:37:50 +01:00
b988e09e3e
ADD: abs for current measure
2018-02-17 00:19:10 +01:00
6842f7b7fe
ADD: buzzer, undervoltage lockout, safe poweroff, foo
2018-02-10 01:37:36 +01:00
a86574bcea
ADD: ppm input
2018-02-09 09:39:47 +01:00
94907b91cf
refactored code, moved user-relevant defines to config.h
2018-02-09 08:53:25 +01:00
86c6106fb7
current feedback "working"
2018-01-07 03:11:55 +01:00
61aff94a26
format
2018-01-06 23:33:34 +01:00
cd5718e151
cleanup
2018-01-06 23:11:22 +01:00
7670cda730
cleanup
2018-01-06 22:59:15 +01:00
cd72ac6ded
dual test
2018-01-06 18:54:51 +01:00
2556a9bbce
pwm working
2017-12-30 02:55:59 +01:00