Commit Graph

19 Commits

Author SHA1 Message Date
4f1348882b Add: Condition on motor control calculation
- The motors control calculation is done only if the motor is enabled to correctly initialize the controller.
2019-07-01 21:06:01 +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
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
febbfc823c Added new BLDC motor control 2019-05-26 15:33:57 +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
dd5a128199 added battery voltage calibration, see config.h 2018-07-21 13:56:23 +02:00
aff32b2bb4 ADD: comments from TomTinkering 2018-05-08 12:51:01 +02:00
7337a8ae7e ADD: support for chinese nunchuck 2018-05-06 20:11:53 +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
30f8d97694 ADD: analog commands via ADC 2018-02-26 22:00:09 +01:00
8d31eaf8af ADD: analog input for vehicle during hackerhotel 2018-02-18 14:02:05 +01: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
10da0983c6 modified the scope function 2018-02-09 10:11:46 +01:00
94907b91cf refactored code, moved user-relevant defines to config.h 2018-02-09 08:53:25 +01:00