Commit Graph
2540 Commits
Author SHA1 Message Date
Cam Buss 2571ab308d Allow reversal of homing direction and ability to clear SPI Error Rate (#427)
* clear spi_error_rate on error clear
* negative homing speed and negative endtop offset
2020-07-01 22:53:17 +02:00
Samuel Sadok 60482c9e8b Fix ASCII protocol bug when writing to uint8_t
When writing to uint8_t properties or equivalently
sized enum properties, the ASCII protocol handler would
write beyond the variable itself and overwrite adjacent
memory.

This manifested for instance in the following:

    r axis0.controller.config.input_mode 1
    w axis0.controller.config.control_mode 3
    r axis0.controller.config.input_mode 0

This boils down to what appears to be misbehavior of
`sscanf`.

This fix adds an intermediate union to provide a safe
memory area for the `sscanf` call.
2020-07-01 12:42:01 +02:00
Unknown 006ac8228f Merge branch 'RazorsFrozenTesting' into devel 2020-05-29 16:04:10 -04:00
camrbuss 4f014a9bc2 Merge branch 'RazorsFrozenTesting' of github.com:camrbuss/ODrive into RazorsFrozenTesting 2020-05-28 18:58:14 -06:00
camrbuss 6acf7f1bbd protocol documentation tweaks 2020-05-28 18:56:16 -06:00
camrbuss 201604c510 protocol documentation tweaks 2020-05-28 18:53:57 -06:00
camrbuss 224a2d91de Endstop configuration example offset 2020-05-27 19:39:48 -06:00
Samuel Sadok 9f9f2ea914 Fix installation and dependencies of odrivetool
Previously the install would fail if monotonic and appdirs were not
already installed before installing odrivetool.
2020-05-26 20:53:14 +02:00
Samuel Sadok 2b38ce7513 fix python2 compatibility
String literal interpolation is not supported by Python < 3.6
2020-05-26 20:12:42 +02:00
Samuel Sadok 81f8dd2fe9 Show udev hint when USB access is denied 2020-05-26 20:10:09 +02:00
Samuel Sadok 128b7d7cb7 revert erroneous table-of-contents update 2020-05-26 17:11:56 +02:00
Samuel Sadok ef89d4cfb0 clarify note on ~/.local/bin (it's a Debian bug) 2020-05-26 14:34:22 +02:00
Samuel Sadok beaca6f5e7 Merge remote-tracking branch 'origin/master' into devel 2020-05-26 13:48:28 +02:00
Samuel Sadok 392781c33d fix return value of ODriveArduino::run_state()
Previously, the function would return false in most cases even on
success.
2020-05-26 12:13:16 +02:00
samuelsadok b000d4889e Merge pull request #413 from madcowswe/sam_fix_compiler_warning
Fix compiler warning
2020-05-26 11:53:15 +02:00
samuelsadok 961b0e7180 Merge pull request #412 from madcowswe/doc/crc
Clarify documentation on CRC calculation
2020-05-26 11:50:02 +02:00
Oskar Weigl 0d45c3ff22 Fix default data_rate in liveplotter from 10 to 100 2020-05-25 16:25:24 -07:00
camrbuss e9d636d13c Merge branch 'devel' of github.com:madcowswe/ODrive into RazorsFrozenTesting 2020-05-23 15:13:06 -06:00
samuelsadok 2a1d95dbd4 Merge pull request #198 from metanoic/black-magic-probe
Debug and flash for black magic probe
2020-05-22 09:14:08 +02:00
samuelsadok aec13265ea Merge branch 'devel' into black-magic-probe 2020-05-22 09:11:35 +02:00
Samuel Sadok e58e9ac257 clarify documentation on CRC calculation 2020-05-20 19:15:01 +02:00
Samuel Sadok 7f82ef4618 fix __packed attribute error for some compilers
related:
https://github.com/zephyrproject-rtos/zephyr/issues/13237
2020-05-20 16:25:35 +02:00
samuelsadok 732781d228 Merge pull request #410 from madcowswe/RazorsFrozenTesting 2020-05-20 16:01:58 +02:00
Samuel Sadok f2945209dd Merge remote-tracking branch 'origin/devel' into RazorsFrozenTesting 2020-05-20 15:55:56 +02:00
Samuel Sadok 9446a28142 increase test tolerance 2020-05-20 15:19:46 +02:00
Samuel Sadok 8d7ddf203c remove obsolete comment 2020-05-20 13:30:30 +02:00
Samuel Sadok 5ca7ae1f3e change inverter temp initial value to NaN 2020-05-20 13:26:43 +02:00
Samuel Sadok b3912d58c2 revert numerical static_cast to C style casts
As per https://github.com/madcowswe/ODrive/pull/410#discussion_r427725994
2020-05-20 13:26:14 +02:00
Samuel Sadok 3d07325022 remove aligned formatting of assignments 2020-05-20 12:27:28 +02:00
Samuel Sadok 3d710a5385 don't treat watchdog_timeout == 0 as special case
this special treatment is now redundant with enable_watchdog
2020-05-20 11:57:04 +02:00
Paul Guenette 62506fbbe1 Merge pull request #411 from madcowswe/feature/extended_can_id
Add support for extended CAN IDs
2020-05-19 18:53:45 -04:00
Samuel Sadok 16059a9e9b add test for extended CAN IDs 2020-05-18 18:52:24 +02:00
Samuel Sadok b0e7dcc6fd Add support for extended CAN IDs
Previously, coexistence with devices that use extended CAN IDs was not
possible since the ODrive would simply clip the 18 upper bits of an
extended message ID.

This adds proper support for extended CAN IDs by changing
`can_node_id` from 8 to 32 bit and introducing the new option
`can_node_id_extended`.
2020-05-18 18:52:13 +02:00
Oskar Weigl 7148de710a Update odrivetool.md 2020-05-13 17:45:50 -07:00
samuelsadok bd26cc9ef3 Merge pull request #408 from madcowswe/feature/uart_baudrate
Feature/uart baudrate
2020-05-13 11:27:13 +02:00
Samuel Sadok 312180fc31 add test for uart_baudrate setting 2020-05-13 11:24:38 +02:00
Samuel Sadok 08f5045ace add documentation for uart_baudrate 2020-05-13 11:22:20 +02:00
Unknown 141d1edd35 Change UART baudrate via fibre 2020-05-12 01:30:40 -04:00
camrbuss 573ad8f7f2 input_mode and control_mode 2020-05-08 19:44:06 -06:00
Oskar Weigl f31ccb5cd2 Update Gemfile.lock 2020-05-08 18:23:11 -07:00
Samuel Sadok cf1b9439cb add test for velocity limit in current control mode 2020-05-08 18:35:54 +02:00
Unknown a8e3220cd6 Merge branch 'RazorsFrozenTesting' into RazorsEdge 2020-05-08 11:41:18 -04:00
Samuel Sadok 011fb86377 make note on timing 2020-05-08 11:02:04 +02:00
Samuel Sadok 8cbee27a5d disable overvoltage ramp if brake_resistance == 0 2020-05-08 10:38:53 +02:00
Samuel Sadok ef669a8668 log SPI timings 2020-05-08 10:26:30 +02:00
Unknown f635ee85cf Convert an if-else tree to a switch statement for clarity 2020-05-07 18:05:40 -04:00
Unknown 6863507570 Use std::clamp instead of manual clamping in some spots 2020-05-07 18:04:27 -04:00
Oskar Weigl 19647db3e6 update changelog, add debug freeze of tim13 2020-05-07 13:25:36 -07:00
Oskar Weigl ffda24a2d8 update max_regen_limit to max_regen_current in changelog 2020-05-07 12:41:42 -07:00
Oskar Weigl 9ccca4352f make pypi script release by default 2020-05-07 12:14:38 -07:00