Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM #5

Closed
wants to merge 33 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fc9aad7
Project start:
Apr 12, 2018
beeebab
Removed hover.hex in build folder from repo.
Apr 12, 2018
bd01241
Initial work on DMA based UART support. Sending works, receiving work…
Apr 12, 2018
e6a15f6
not using modbus, srry
Apr 15, 2018
c69e509
added ignore items
Apr 19, 2018
fd0b146
Redo "added ignore items"
Apr 19, 2018
920f5b1
ignore several project files
Apr 19, 2018
ab31e49
Updated UART to include running RX DMA buffer
Apr 19, 2018
0d7bb06
CFGBus naming update
Apr 22, 2018
c2cab9f
CFGbus test
Apr 22, 2018
1fdddb3
Switch to modbus
Apr 22, 2018
e94c679
Switch to other tiny modbus library
Apr 22, 2018
c05e904
first working modbus commit. Changing holding register representation
Apr 22, 2018
93215cd
format source file
Apr 22, 2018
ae12048
refactor variable names
Apr 22, 2018
62292d2
refactor variable namees
Apr 22, 2018
9271618
refactor defines
Apr 22, 2018
8707d9e
working check after refactor
Apr 23, 2018
2941d01
start rewrite modbus to allow struct instead of uint16_t array
Apr 23, 2018
2f39954
working modbus.c after reimplementation. Now move towards TX DMA
Apr 23, 2018
d934a27
updated UART to used interrupt/DMA based TX
Apr 23, 2018
0f68082
Create README.md
TomTinkering Apr 23, 2018
ed93fa4
Fixed a type in UART3 implementation
Apr 26, 2018
bd4d590
modbus now using function pointers to allow easy connection to other …
Apr 26, 2018
dc12df6
*updated cfgbus.c for easier definition of entries
Apr 26, 2018
28c6e55
connected modbus to cfgbus and implemented write potection
Apr 26, 2018
d1d7f5b
Merge branch 'master' of https://github.com/TomTinkering/hoverboard-f…
Apr 26, 2018
729a6ce
Modifications for compatibility with GUI
Apr 28, 2018
57b3954
oops
Apr 28, 2018
2fb4d46
no more need to increment err_cnt for test
Apr 28, 2018
83f245a
Switched to UARTCh3 to test
Apr 30, 2018
86a1903
Added eeprom lib (unused for now, but compiles). Added speed/tacho en…
May 7, 2018
67b4a5d
Storing settings now works by writing MagicValue with MagicValue, usi…
May 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
oops
tomv committed Apr 28, 2018
commit 57b39545d934ca59d70853d88f39cf304283b02e
4 changes: 2 additions & 2 deletions Src/bldc.c
Original file line number Diff line number Diff line change
@@ -112,8 +112,8 @@ void DMA1_Channel1_IRQHandler() {
uint8_t hall_l = (LEFT_HALL_PORT->IDR >> LEFT_HALL_LSB_PIN) & 0b111;
uint8_t hall_r = (RIGHT_HALL_PORT->IDR >> RIGHT_HALL_LSB_PIN) & 0b111;

cfg.vars.pos_r = hall_to_pos[hall_l];
cfg.vars.pos_l = hall_to_pos[hall_r];
cfg.vars.pos_r = hall_to_pos[hall_r];
cfg.vars.pos_l = hall_to_pos[hall_l];

//update PWM channels based on position
int ul, vl, wl;