Commit Graph
366 Commits
Author SHA1 Message Date
Cam Buss fc82ed6610 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:50:25 +02:00
PAJohnson c63e51f8d7 Changed docs to reflect change from CONTROL_MODE_CURRENT_CONTROL to CONTROL_MODE_TORQUE_CONTROL 2020-06-23 16:04:00 -04:00
PAJohnson 152a127d67 Merge branch 'devel' of https://github.com/madcowswe/Odrive into A_to_Nm 2020-06-23 15:59:51 -04:00
PAJohnson 7c33fa5d27 Changed docs to reflect removal of current control mode and addition of torque control mode
Regenerated enums
changed can_test.py to reflect control mode change
modified closed_loop_test.py to pass with A->Nm change.
2020-06-23 01:23:11 +01:00
Samuel Sadok f63c7edcd0 fix appearance on several browsers 2020-06-19 13:24:38 +02:00
Samuel Sadok 6d6c554a87 revert navbar colors, implement indentation 2020-06-18 10:28:26 +02:00
pjohnson ceabd24582 Made changes reflecting PR comments.
Added torque_ramp_rate to controller config.
Changed INPUT_MODE_CURRENT_RAMP to INPUT_MODE_TORQUE_RAMP for controller input mode enum.
Torque limits and current limits are now observed seperately. Torque limit is in the controller, current limit is in the motor object.
Fixed torque -> current calculation in motor_update to handle ACIM motors.
2020-06-17 13:15:36 -04:00
pjohnson d78119e29f Modified docs and communication interfaces to reflect change from A to Nm for motor control input.
Renamed vel_integrator_current_ to vel_integrator_torque_
Removed input_current_ from controller, added input_torque_
2020-06-16 17:10:36 -04:00
Samuel Sadok 8bd35aaff5 tweak appearance 2020-06-15 14:20:32 +02:00
Samuel Sadok d304d4e7eb move part of documentation into the yaml file
The following documentation is moved to odrive-interfaces.yaml:
 - Error flag documentation from troubleshooting.md
 - Axis state documentation from commands.md
 - Input mode documentation from input_modes.md
2020-06-10 23:03:07 +02:00
Samuel Sadok 426236dff1 implement HTML API reference autogeneration
This adds a jinja template to generate markdown files
(with lots of HTML mixed in) from YAML using the existing
interface_generator.py script.

The docs website layout files are modified to incorporate the
new documentation.

While previously Github Pages was automatically running
Jekyll on the docs folder, this commit adds a custom Github
workflow to compile and deploy the website to facilitate
the custom markdown generation step before Jekyll runs.
2020-06-10 23:03:07 +02:00
Samuel Sadok b88f66ab99 update macOS build instructions 2020-06-10 16:09:18 +02:00
Samuel Sadok 6380c2b201 add fibre HWIL tests 2020-06-10 14:05:52 +02:00
Samuel Sadok f7c8a6ea94 Merge remote-tracking branch 'origin/devel' into feature/interface_autogen 2020-06-10 13:01:15 +02:00
Samuel Sadok b14d68cee4 Merge branch 'more-ci' into devel 2020-06-05 11:23:03 +02:00
Samuel Sadok abf4fa85d3 add pip install to CI 2020-06-04 15:49:35 +02:00
Samuel Sadok 592b5f48c7 fix compilation
improve Python3 install check, remove python string
interpolation which is not supported by older python
versions

remove string interpolation
2020-06-03 18:05:38 +02:00
Samuel Sadok a874dcbbb9 Merge branch 'devel' into feature/interface_autogen 2020-06-02 21:26:22 +02:00
Samuel Sadok a755f27917 Fix hang on compile on Windows
Windows 10 includes since version 1903 a python stub which is supposed
to open the MS Store if python is invoked but not installed. However
when invoked from tup, the stub simply hangs without output.

With this change we first check the python version (something that the
Windows stub does not interer with) before we invoke it.
2020-06-02 16:54:28 -07:00
Unknown 006ac8228f Merge branch 'RazorsFrozenTesting' into devel 2020-05-29 16:04:10 -04:00
camrbuss 6acf7f1bbd protocol documentation tweaks 2020-05-28 18:56:16 -06:00
camrbuss 224a2d91de Endstop configuration example offset 2020-05-27 19:39:48 -06: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
camrbuss e9d636d13c Merge branch 'devel' of github.com:madcowswe/ODrive into RazorsFrozenTesting 2020-05-23 15:13:06 -06:00
Samuel Sadok 653c4c327e Merge remote-tracking branch 'origin/devel' into feature/interface_autogen_merged 2020-05-22 21:27:58 +02:00
Samuel Sadok e58e9ac257 clarify documentation on CRC calculation 2020-05-20 19:15:01 +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
Samuel Sadok e4d70a22b7 Initial implementation of interface autogenerator.
TODO:
 - write to endpoints from float (for PWM/analog input)
 - ascii protocol
2020-05-14 23:05:02 +02:00
Samuel Sadok da7f719283 improve naming consistency between code and fibre
Consistent naming makes code autogeneration easier.
This commit does not claim that the exported names of the variables were
more sensible than the in-code names. However changing the exported
names can break external tools and needs to happen in a controlled and
documented way.
2020-05-14 11:16:32 +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
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
Samuel Sadok eb944018e3 update documentation 2020-05-06 11:21:33 +02:00
camrbuss 87b3ad252e CAN table merge Message and Signals 2020-05-04 20:03:25 -06:00
camrbuss b7ba3f11ce svd for FreeRTOS, state doc updates 2020-05-04 19:32:38 -06:00
Samuel Sadok 6ade7e47ed update testing documentation 2020-05-01 14:48:12 +02:00
Samuel Sadok f5289ddb19 update developer documentation 2020-05-01 14:48:12 +02:00
Samuel Sadok 4cfbb2c3e4 fix various issues with SPI encoder implementation
- Remove logic that would inhibit error detection until the first value is received. This logic posed a risk when no encoder is connected at all.
 - check error flag in AMS mode
 - Make CUI mode work. Only tested with emulated CUI encoder.
 - only go to ready-state if a successful value was received _and_ the offset was already pre-calibrated
 - enable pull-up on MISO so that a disconnected AMS encoder can be detected
 - update encoder documentation
2020-04-29 16:18:55 +02:00
Unknown 659bcaaa2c Merge branch 'RazorsFrozenTesting' into RazorsEdge 2020-04-27 12:49:46 -04:00
Samuel Sadok 8cd673363c Reboot on erase_configuration().
This avoids unexpected behavior of a subsequent `save_configuration()`
call, since the configuration is only erased from NVM, not from RAM.
2020-04-27 15:19:32 +02:00
Unknown baa6e4b5dc Set default configuration of endstops to configuration 4 2020-04-26 00:25:19 -04:00
camrbuss e9aa6b867c Ubunutu 20 documentation 2020-04-25 22:20:50 -06:00
Unknown 828f82b25b Merge branch 'RazorsFrozenTesting' into RazorsEdge 2020-04-25 23:53:52 -04:00
Unknown 39fba04520 Merge branch 'master' into RazorsFrozenTesting 2020-04-25 23:52:30 -04:00