Commit Graph
659 Commits
Author SHA1 Message Date
Samuel Sadok c45ef8934b Change wrap_pm to be based on fmodf
Before this commit, bad user input could cause the device to hang,
that is, no longer respond on USB (other side effects are likely,
though not tested for).

An example of such an input is:

odrv0.axis0.encoder.config.cpr = 10
odrv0.axis0.encoder.config.offset = 20000
2020-04-23 14:38:50 +02:00
Unknown a5d991e712 Clarify current_setpoint calculation 2020-04-21 20:39:39 -04:00
Unknown 574190e433 Change trap_traj timer to be more robust 2020-04-21 20:39:10 -04:00
Samuel Sadok 237a50bfc9 add step/dir input tests 2020-04-21 15:57:26 +02:00
Unknown e6f95d4d47 Make sin/cos encoder pins configurable. 2020-04-09 18:53:53 -04:00
Samuel Sadok 37c4fe337a allow configuring motor parameters without reboot 2020-04-08 16:26:15 +02:00
Samuel Sadok 746e142fc2 fix encoder direction find procedure 2020-04-08 16:25:29 +02:00
Unknown 8a7a5aac4d Remove VBUS_OVERVOLTAGE_LEVEL because it's not being used 2020-03-29 21:10:38 -04:00
Unknown db890b0d5c Use brake_current as a true FF 2020-03-28 00:58:32 -04:00
Unknown 163ce7d21a Change Interval to Increment 2020-03-28 00:50:44 -04:00
Unknown a8d47894ca Add additional test types and fix missing template argument 2020-03-28 00:40:00 -04:00
Unknown f5f9514bfc Fix comment 2020-03-28 00:20:28 -04:00
Unknown 128ae3935c Make Timer generic, add comments 2020-03-28 00:15:21 -04:00
Unknown 31fb65b86c Improve braking logic 2020-03-27 21:30:32 -04:00
Unknown c231928619 Merge branch 'feature/brake_current_fix' into RazorsFrozenTesting 2020-03-27 21:24:49 -04:00
Unknown fb46103498 Add doctest, fix drv8301 warning 2020-03-27 21:22:04 -04:00
Unknown 8a0a22eb6f Revamp Endstop timers 2020-03-27 21:11:39 -04:00
Unknown 33317eb4df Add Timer class 2020-03-27 21:05:27 -04:00
Unknown cb534ae372 Move gpio helper functions 2020-03-27 21:05:16 -04:00
Unknown 42b6effedd Implement a better brake resistor current handler 2020-03-26 17:20:32 -04:00
Unknown 7d00c4181d revert timer overflow check 2020-03-09 21:16:43 -04:00
Unknown 17bcb43dd6 Improve debounce resolution 2020-03-09 21:15:45 -04:00
Unknown a498a1f984 Convert endstop debounce_ms to a uint32 to avoid potential overflow bug 2020-03-09 21:08:49 -04:00
Unknown f9b4c78667 Merge remote-tracking branch 'madcowswe/devel' into RazorsEdge 2020-01-30 21:30:34 -05:00
Oskar Weigl d60362470d Merge branch 'devel' into rollo 2020-01-30 16:16:48 -08:00
Oskar Weigl 8cbc09e168 feed watchdog on enter closed loop 2020-01-30 16:16:39 -08:00
Paul Guenette c5f06845c2 Allow for regen current before braking 2020-01-30 12:36:51 -08:00
Unknown 930de28de9 Clean up static analysis warnings 2020-01-08 22:59:57 -05:00
Unknown 1bdea53ec8 Improve testability 2020-01-08 22:11:50 -05:00
Unknown 75808abce4 Fix merge issue with ACIM code 2020-01-01 22:13:44 -05:00
Unknown 37ee8ae184 Fix compile errors 2020-01-01 22:13:08 -05:00
Unknown 7a756c1761 Merge branch 'devel' into RazorsEdge 2020-01-01 21:45:41 -05:00
Unknown 62654ed966 Fix avoid transients at startup 2020-01-01 21:38:17 -05:00
Unknown 4ee55aaed4 Only configure encoder SPI at startup 2020-01-01 21:37:55 -05:00
Unknown 7277592198 Set default GPIO pin for absolute encoders to pin 1 2020-01-01 21:37:31 -05:00
Unknown c9d35415db Configure motors before encoders to avoid SPI collision 2020-01-01 21:37:04 -05:00
Unknown 878566cba9 Correct parity calculation tests 2020-01-01 19:48:54 -05:00
Unknown bb31f042da Revert "Fix parity calculation"
This reverts commit 27b3c69e8e.
2020-01-01 19:47:27 -05:00
Unknown 27b3c69e8e Fix parity calculation 2020-01-01 01:52:21 -05:00
Unknown 2dfff2a7d6 Only access abs_spi_dma_rx_ once 2020-01-01 01:52:03 -05:00
Unknown 96e01cc4c2 Add pullup config to endstops to account for NC configs 2019-12-22 18:49:53 -05:00
Unknown 77efd6b761 Allow infinite negative current by default 2019-12-22 17:20:10 -05:00
Unknown a4664fbf5e Merge branch 'RazorsEdge' into RazorsFrozen 2019-12-22 17:07:32 -05:00
Oskar Weigl 1feb0ffe67 Merge pull request #371 from madcowswe/sam_nvm_fix
Fix NVM bug that prevented from saving configuration three times in a row
2019-12-04 14:43:35 -08:00
Unknown 2c9f43c9ff Add safety disarm in the stack overflow hook and increase stack sizes 2019-12-04 00:09:57 -05:00
Oskar Weigl 2a22602e82 add dirty fix for setpoint in cpr 2019-11-02 14:05:22 -07:00
Oskar Weigl e19e857360 fix typo 2019-10-28 20:39:23 -07:00
Oskar Weigl cbae7c5b85 change current lim tolerance to absolute margin 2019-10-28 20:34:17 -07:00
Unknown f127df72f1 Add stack_size vars, reduce stack usage 2019-10-26 14:28:06 -04:00
Unknown 1550170201 Merge branch 'CommsStackFix' into RazorsFrozen 2019-10-26 14:24:01 -04:00