137 Commits

Author SHA1 Message Date
efb438bf51 Exit MULTI_MODE_DRIVE if inputs are not calibrated
- Timeout: 3 seconds
2023-01-08 17:16:33 +01:00
a6430e3a3e HOVERCAR: improved MULTI_MODE
- improved MULTI_MODE by adding torque and speed limits
  - BEGINNER MODE: Power ON + Brake [released] + Throttle [released or pressed]
  - INTERMEDIATE MODE: Power ON + Brake [pressed] + Throttle [released]
  - ADVANCED MODE: Power ON + Brake [pressed] + Throttle [pressed]
- made Voltage mode as default for hovercar (better for toddlers)
- made MULTI_MODE_DRIVE active as default
2022-08-15 18:30:29 +02:00
5505a71260 Minor styling 2022-06-05 14:52:09 +02:00
cb7f3e9183 Removed speed from logging 2022-05-22 20:41:21 +02:00
87f9d4e8a3 Moved rate, max_speed initialization out of the drive loop 2022-05-22 20:37:09 +02:00
4ef368330d Fixed Trigger released check for MultiModeDrive
(cherry picked from commit 2a2e2a2091494e8257b5e558077ca7a3c2ac575f)
2022-05-22 11:40:22 +02:00
873fc8ea14 Added Multi Mode Drive
(cherry picked from commit 0167a1d81cf0eaaebc7196e2fcf7120a13438f4d)
2022-05-22 11:15:04 +02:00
12cc722cef Fixes 2022-04-30 13:53:49 +02:00
29535a26e6 Update util.c 2022-04-25 21:31:14 +02:00
31326ad158 Update comms.c 2022-04-25 21:21:52 +02:00
5612af0a90 Fix average speed 2022-04-25 21:11:55 +02:00
bb119d7a38 Fixes and improvements 2022-03-29 21:43:07 +02:00
9d9501ad97 Fix: field weakening #164 2022-03-06 11:43:50 +01:00
50704b3395 Reworked the Wii nunchuck driver to make it much more robust. New features now include:
* Nunchuck can be hot-plugged
  * Recovery is made from bad or lost communication
  * Nunchuck checked to see if it is initialised (check for all 0x00 or 0xFF) and values
    ignored if not to avoid motor glitches
  * Initialisation of I2C is made more reliable following guidance of other STM32 users on the web, i.e.
    force restart of peripheral after GPIO pin initialisation
2022-02-06 12:05:59 +00:00
c71c102bc2 Fix #247 2022-01-01 13:47:42 +01:00
2ab0699f1f Adjust pwm_margin #153 2021-03-27 11:42:53 +01:00
e73f0535d5 UPD: Delay in main loop #138
- improvement on HAL_Delay() in main loop, see #138
- minor adjustments for namings
2021-03-12 17:54:03 +01:00
7f4b922808 Removed malloc and added more variables (debug protocol). Parameter for alternate adc wiring. Removed unnecessary limiting of cmdL and cmdR. Board_variant parameter for alternate boards 2021-02-20 16:53:22 +01:00
a564f368e2 Ascii Debug updates
- added missing pointer to UART2 input user processing
- added comms.c to Makefile
- fixed #134 : uncomment #define AUTO_CALIBRATION_ENA to disable auto-calibration
- small styling adjustments
2021-01-29 19:47:03 +01:00
d5d85c20ec At startup, wait until on/off button is released, to prevent entering auto-calibration after flashing 2021-01-27 22:45:57 +01:00
aa5cb18aea Handle usart overflow mode 2021-01-11 21:34:17 +01:00
d14a7c9d67 Improvement 2021-01-07 23:49:03 +01:00
10a359a142 Fix 2021-01-06 22:15:29 +01:00
cd40425e99 Improvements 2021-01-06 12:54:08 +01:00
7a6dc017a6 Improvements 2021-01-05 12:40:30 +01:00
69ed548823 FIx 2021-01-03 12:20:52 +01:00
2c433ccbb4 Improvements 2021-01-03 12:19:16 +01:00
177d5d4dc1 Fix 2021-01-03 02:12:33 +01:00
0f6132a71e Renamed functions 2021-01-03 01:58:42 +01:00
3acae8ae10 Function for setting, getting, incrementing,initializing and dumping parameters 2021-01-03 00:09:39 +01:00
63276132a7 Fixed RC switch update 2021-01-02 10:49:55 +01:00
7aee1b37c6 Added beep for input change 2021-01-01 13:37:54 +01:00
31c321c83a Fixed RC switch reading from Sideboard data
- updated figures
- renamed RC switched to match transmitter convention
2020-12-31 14:39:50 +01:00
ce03d4c816 Activated SW2 on RC 2020-12-23 12:45:29 +01:00
e412e9edfc Fix Nunchuk + UART
- fixed Nunchuck timeout when UART was enabled
2020-12-22 20:16:57 +01:00
38d8dc6177 Fixed timeoutCnt init values 2020-12-20 22:21:01 +01:00
df86ef44fd Dual-inputs implemented
- implemented dual-inputs functionality
- the dual-inputs combinations mentioned in Readme are now supported
2020-12-20 10:16:31 +01:00
5ca3fa4f85 InputStruct update
- input1, input2 converted to structure
- some functions are re-positioned in util.c
2020-12-13 21:52:29 +01:00
9504845ec1 Reverted pointer cast
- was not working as expected
2020-12-10 20:14:15 +01:00
164219c942 Update util.c
missed some #ifdef
2020-12-10 19:43:12 +01:00
c86d9c4f43 Improvements and clean-up
- clean-up printfs
- removed consoleLog function with respective files
- removed Delay when using printf
- renamed speedL, speedR to cmdL, cmdR
- corrected Arduino baud rate
- updated FLASH write pointer cast int16_t to uint16_t
2020-12-10 19:35:13 +01:00
d1286e246b Fixed printf - works with default UART settings
- still some clean up to do
2020-12-09 20:35:26 +01:00
31f0f915cf Merge branch 'master' into master 2020-12-09 18:44:37 +01:00
3fcae4fc8b Baud rate to 115200
- updated baud rate to 115200
- minor updates to match sideboard data
2020-12-07 20:33:22 +01:00
994277affe Fixed beep counter interraction
- beep counter interraction fix
- readme update
2020-12-06 20:35:01 +01:00
098ca9f97c Diag: beep numbers for errors
- implemented beep numbers in case of error for easier debugging
- fixed bug: power button needs to be pressed multiple times to turn on
2020-11-28 10:38:17 +01:00
18ac2bc224 removed debug test code, lowered the error message print rate by 50 2020-11-27 20:14:24 +01:00
c57e1a0e4e implemented write syscall for printf, added float-support for printf, serial tx does not need an interrupt anymore, replaced consoleLog and consoleScope with printf, changed debug output: every comment starts with "# " now, added lots of debug messages, added welcome message with gcc version and build date 2020-11-22 21:54:59 +01:00
ad8c2a552a improved VARIANT_ADC documentation in config.h 2020-11-22 00:45:48 +01:00
925008467b Minor updates RC
- moved all the RC inputs (PPM, PWM, iBUS) to Right cable
- updated timing to enter torque and speed update from 300ms to 1000ms
2020-11-19 21:51:15 +01:00