Commit Graph
379 Commits
Author SHA1 Message Date
PAJohnson faae8f5b8e Minor cleanup to encoders documentation 2020-08-24 20:50:52 -04:00
PAJohnson db41fe9a29 Added closed loop test to CAN HWIL test
Fixed ascii protocol docs: current -> torque
2020-07-30 18:16:56 -04:00
PAJohnson b63983ef5c Fixed units for can_simple protocol and updated can HWIL test 2020-07-29 20:46:26 -04:00
PAJohnson b0700ef371 Documentation fixes for unit change
Fixed naming, docs, and test for CAN protocol - set trap traj a per css is now set trap traj inertia
2020-07-28 20:49:55 -04:00
PAJohnson be2d1037e3 Fixed null pointer checks in controller.cpp
Fixed formatting in trapTraj.hpp
Fixed how pos_setpoint is set in axis.cpp to avoid transients on startup so that it will handle circular position setpoints
More unit corrections in the docs: radians -> turns
2020-07-27 21:26:41 -04:00
Oskar Weigl af16316940 Merge branch 'devel' into counts_to_rads 2020-07-25 20:29:43 -07:00
Rowan Goemans 1a0d6acace - Refactored thermal and current lmiting sub-systems and introduced motor thermistor support.
- Added thermal errors to dump_errors call in odrivetool.
- Added function in odrivetool to set thermistor coefficients based on thermistor specs.
- Added documentation for users on how to connect and configure their own thermistors.
2020-07-17 14:09:47 +02:00
PAJohnson e1b1641d70 Changed from radians internally to units of "turns" where a full rotation is 1.0 turn
Changed documentation to reflect the unit change
2020-07-14 20:02:59 -04:00
PAJohnson a2626889c5 Added pos_circular_ to Encoder for tracking position in a circular space
Corrected docs as they relate to unit changes
Added pos_estimate_linear and pos_estimate_circular to Controller and eliminated pointer switching logic in Controller::select_encoder()
2020-07-14 17:22:39 -04:00
PAJohnson 9d5b2bc6d8 Changed conditions and sources of wrapping for the circular setpoint feature as it related to this unit change. setpoints_in_cpr is still not exposed as an endpoint due to implementation changes when input_mode was introduced. 2020-07-13 23:31:57 +01:00
PAJohnson 7ce896c2ce In encoder.*pp, XXX_estimate -> XXX_estimate_counts and XXX_est_rad -> XXX_estimate.
Changed HWIL tests to reflect unit change
Corrected sources for position and velocity estimates elsewhere.
2020-07-13 20:59:35 +01:00
PAJohnson ca7928774f Merge branch 'devel' of https://github.com/madcowswe/ODrive into counts_to_rads
Merging recent devel changes into branch
2020-07-06 20:02:47 +01:00
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 e476b95536 Removed unit-conversion abiltiy for input_pos and input_vel
Updated documentation to reflect unit change.
2020-06-26 18:03:44 +01: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