interfisch
ea1a7ae057
swap feedback serial struct speedL_meas and speedR_meas to be more consistent
2021-05-24 18:57:50 +02:00
interfisch
898898a63c
fix data type
2021-03-02 23:47:41 +01:00
interfisch
2bab3aa1a4
change steer and speed to speedL and speedR commands
2021-02-26 19:29:55 +01:00
interfisch
a4ba5245c6
pull current version from github and reapply own changes
2021-02-26 18:48:49 +01:00
EmanuelFeru
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
Candas1
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
Candas1
d14a7c9d67
Improvement
2021-01-07 23:49:03 +01:00
Candas1
7a6dc017a6
Improvements
2021-01-05 12:40:30 +01:00
EmanuelFeru
63276132a7
Fixed RC switch update
2021-01-02 10:49:55 +01:00
EmanuelFeru
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
EmanuelFeru
5ca3fa4f85
InputStruct update
...
- input1, input2 converted to structure
- some functions are re-positioned in util.c
2020-12-13 21:52:29 +01:00
EmanuelFeru
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
EmanuelFeru
d1286e246b
Fixed printf - works with default UART settings
...
- still some clean up to do
2020-12-09 20:35:26 +01:00
EmanuelFeru
31f0f915cf
Merge branch 'master' into master
2020-12-09 18:44:37 +01:00
EmanuelFeru
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
larsm
18ac2bc224
removed debug test code, lowered the error message print rate by 50
2020-11-27 20:14:24 +01:00
larsm
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
EmanuelFeru
44befc480a
Input Auto-calibration
...
- mainly rearangement of function
- updated initialization in the auto-calibration function
- added beep for confirmation of Input protection
2020-11-18 19:16:56 +01:00
EmanuelFeru
419ef454f3
Merge branch 'master' into master
2020-11-15 18:53:55 +01:00
Candas1
1ab75e5ff9
Fix auto calibration
2020-11-15 18:09:30 +01:00
Candas1
f962d16cd6
Test print log
2020-11-14 19:30:38 +01:00
EmanuelFeru
c2647ed686
Improved Standstill Hold functionality
...
- Standstill Hold should now engage sooner if Brake pedal is pressed to prevent continuous rolling in a Downhill situation.
2020-11-12 22:41:29 +01:00
Candas1
b1169c02b7
Fixes
2020-10-31 21:14:15 +01:00
Candas1
b50efdcab2
Fix typo
2020-10-29 00:41:41 +01:00
Candas1
aaeb44d0b6
Update main.c
2020-10-28 23:36:24 +01:00
EmanuelFeru
4fbf2549c9
Cruise Control update
...
- added support for Cruise Control in HOVERCAR variant
- updated the shortBeep function, didn't like the beeping sound :)
2020-10-20 19:54:38 +02:00
EmanuelFeru
290ed30765
Fixes Skateboard Variant
...
- fixed to RIGHT cable
- fixed braking relative to the direction of motion
- adjusted the braking amount to -400
2020-07-20 21:06:39 +02:00
EmanuelFeru
733fd80362
created SKATEBOARD variant
2020-07-20 20:33:42 +02:00
EmanuelFeru
dcdac4f6db
Updated PWM variant
...
- fixed the setScopeChannel for PWM, to calibrate properly the limits
- improved the scaling
2020-07-20 19:36:24 +02:00
EmanuelFeru
f2d86f3b30
Added functionality: Electric Brake, Standstill hold
...
- For TORQUE mode, by enabling `ELECTRIC_BRAKE_ENABLE` in `config.h`, the freewheeling amount can be adjusted using the `ELECTRIC_BRAKE_MAX` parameter.
- For VOLTAGE and TORQUE mode, the standstill hold functionality can be forced by enabling `STANDSTILL_HOLD_ENABLE` in `config.h`.
Known (minor) issue: There is a small "tick" noise when Stanstill is engaged/disengaged, due to the switching to SPEED mode. To be solved by an improved mode switching strategy in the future.
2020-07-19 11:24:37 +02:00
EmanuelFeru
22984a7fd6
Fixed PPM, PWM timeout
...
- fixed the general timeout handling: there is no need to disable the MOSFETs timer because it will confuse the BLDC_controller, making him consider the timeout as a false MOSFET defective error.
- renamed `timeout` to `timeoutCnt` for consistency and to ease the search
#61
2020-07-01 19:50:32 +02:00
EmanuelFeru
17e127a8b7
PWM/PPM Left/Right, UART update
...
- created possiblity to use PWM, PPM input also on both LEFT and RIGHT cable (RIGHT cable is 5V tolerant)
- updated UART: disabled the Rx errors to avoid DMA stop and additional need to manage the UART error handler
- added Button support LEFT/RIGHT
2020-06-25 20:17:55 +02:00
EmanuelFeru
ac90ed1b6b
Fixed initial condition bug
...
- the initial condition for the Battery and Board temperature was wrongly set
- the filter is fixdt(1,32,16), so the shift should be by 16 bits.
2020-06-22 20:21:18 +02:00
EmanuelFeru
e46dff590f
Major UART communication improvement
...
- the UART communication is improved based on UART Idle line detection interrupt
- an Rx ring buffer is used to manage the UART incoming data
- both Tx and Rx are efficiently handled using DMA
#45 #64 #65
Other:
- minor visual improvements
2020-06-21 23:14:46 +02:00
interfisch
78b8d80e5b
current measurement bug testing
2020-06-07 01:33:19 +02:00
EmanuelFeru
38574153f0
Added deadband for PPM signal
...
Issue #29
2020-03-24 20:36:19 +01:00
EmanuelFeru
c099bec824
RC pwm signal read fixes
...
Re-work on the RC pwm input signal timeout
2020-03-23 21:09:17 +01:00
EmanuelFeru
7d80e564f0
First commit pwm
...
- buttons not yet support
2020-03-21 19:24:29 +01:00
EmanuelFeru
9d6cec8889
Hovercar minor update
...
- put by default TORQUE mode. Hovercar works best in Torque mode
- made the brake pedal more aggressive. Gives a better braking feel.
2020-03-17 15:38:35 +01:00
EmanuelFeru
72e6b30033
UART with sideboards works + major refactoring
...
► the mainboard can now send and receive Serial data from the sideboards
► heavy refactored the `main.c`. It was becoming too large to manage... Therefore, `util.c` and `util.h` was created
► added new functionality for `VARIANT_HOVERCAR` and variants with `CONTROL_ADC` in general:
- ADC limits auto-calibration mode (long press of the power button) - calibration will not be lost at power-off
- Max Current and Max Speed adjustment mode (long press followed by a short press of the power button) - calibration will not be lost at power-off
- added one sideboard functionality:
- LEDs are used to display battery level, Motor Enable, Errors, Reverse driving, Braking.
- Photo sensors are used as push buttons: One for changing Control Mode, One for Activating/Deactivating the Field Weakening on the fly
2020-03-01 10:00:26 +01:00
EmanuelFeru
872d86f021
Added Keil project
...
Project can now be built and flashed with Keil uVision as well.
2020-02-16 21:58:15 +01:00
EmanuelFeru
2d178a399c
Improved Serial Timeout
...
- added condition to avoid restarting DMA repeatedly if no data is received
- enabled DEBUG_SERIAL_ASCII for all Variants except VARIANT_TRANSPOTTER
2020-02-06 21:53:38 +01:00
interfisch
b9bf849330
optimum resolution for current serialfeedback
2020-02-02 18:36:37 +01:00
interfisch
fc5f5a26ca
feedback struct first left, seconds value right
2020-02-02 14:42:56 +01:00
interfisch
7bc84cf3e0
manually apply some improvements from current emanuelferu repo
2020-02-02 14:27:36 +01:00
kai
e1aa42bad0
space removal
2020-01-18 01:15:45 +01:00
kai
cd01b73451
corrected nunchuck to nunchuk
2020-01-18 01:05:06 +01:00
EmanuelFeru
d2c846cda9
Updated IBUS variant
...
- separated the implementation from USART implementation for more clarity
- fixed warnings
- minor visual updates
2020-01-08 19:16:34 +01:00
Candas1
c3a40f6454
Replacing #elif by #else
2020-01-07 22:06:31 +01:00
Candas1
4f8aafe3f0
Use defined macros for min max values
2020-01-07 21:13:22 +01:00