Commit Graph
99 Commits
Author SHA1 Message Date
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 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 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
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 f7c8a6ea94 Merge remote-tracking branch 'origin/devel' into feature/interface_autogen 2020-06-10 13:01:15 +02:00
Samuel Sadok abf4fa85d3 add pip install to CI 2020-06-04 15:49:35 +02:00
Samuel Sadok a874dcbbb9 Merge branch 'devel' into feature/interface_autogen 2020-06-02 21:26:22 +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 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
Unknown 39fba04520 Merge branch 'master' into RazorsFrozenTesting 2020-04-25 23:52:30 -04:00
Unknown 36c7b4dbd7 Replace current_setpoint by input_current in docs 2020-04-21 20:49:26 -04:00
Unknown 9b2df645f9 Replace select instances of vel_setpoint by input_vel in docs 2020-04-21 20:49:18 -04:00
Unknown f4f4be0d6d Replace select instances of pos_setpoint by input_pos in docs 2020-04-21 20:46:38 -04:00
Unknown c231928619 Merge branch 'feature/brake_current_fix' into RazorsFrozenTesting 2020-03-27 21:24:49 -04:00
Oskar Weigl 1c9476318b Update getting-started.md 2020-02-05 19:24:04 -08:00
Paul Guenette 8468204aa3 Merge pull request #387 from alexmcnabb/patch-1
Alternate procedure to find pole-pair count
2020-02-02 14:15:06 -05:00
Oskar Weigl 595bfdabba add back manual udev rule setup to getting started 2019-12-17 18:52:13 -08:00
Alex McNabb 27ab4eaf35 Alternate procedure to find pole-pair count 2019-11-18 22:46:57 -06:00
Samuel Sadok 20d7bdf8c0 update documentation 2019-09-27 18:10:24 +02:00
Unknown 846f3a2cc1 Merge remote-tracking branch 'madcowswe/devel' into RazorsEdge 2019-09-09 23:45:33 -04:00
Paul Guenette c52261da6f Merge remote-tracking branch 'madcowswe/sam_nvm_fix' into RazorsEdge 2019-08-15 21:02:20 -04:00
Samuel Sadok 6d520d9316 remove workaround note for NVM bug 2019-08-13 14:09:39 +02:00
Oskar Weigl 39904242e4 Update getting-started.md 2019-08-09 21:53:52 -07:00
Oskar Weigl 33bd7d0fd6 Update getting-started.md 2019-08-09 21:42:13 -07:00
Oskar Weigl 65f446004e Update getting-started.md 2019-08-09 21:39:04 -07:00
robopilot99 7d62ea77c0 Revise documentation to clarify tuning procedures 2019-07-25 23:03:52 -05:00
Paul Guenette da27153f5e Add unit tests for current_vel_limit (failing) 2019-06-19 22:36:40 +02:00
Oskar Weigl 7e0977a73a Update getting-started.md 2019-05-30 22:16:30 -07:00
kingoflolz d8d1711c9f Update getting started 2019-05-28 15:28:15 -04:00
Oskar Weigl 20ba0ca18e fix getting started TOC 2019-03-20 15:00:32 -07:00
Oskar Weigl c80358bcd5 update docs 2019-03-19 19:56:26 -07:00
Oskar Weigl 933e3068ae Merge branch 'devel' into input-filter 2019-03-19 18:15:52 -07:00
Paul Belanger 42384f3ef9 Initial implementation of comms watchdog
- Added watchdog timeout property to Axis::Config_t:
  axis.config.watchdog_timeout

- Added axis protocol function to feed watchdog timer:
  axis.watchdog_feed()

- Axis::run_control_loop now checks for watchdog expiration.

- Ascii protocol: add support for watchdog

  - The following ASCII commands now automatically update the watchdog:
    p, v, t, c, q

  - Added a 'u' command to update the watchdog of a motor without
    modifying setpoints.

  - Updated ascii protocol documentation to reflect new commands and
    effects.

- Updated getting started guide to mention watchdog settings and
  functions in protocol.

Please note: due to unavailability of hardware at this time, I have been
unable to test this code on an Odrive.
2019-03-06 14:40:59 -05:00
Oskar Weigl b03ec2e88c update changelog, improve some ascii commands 2019-02-25 20:00:14 -08:00
Damien LaRocque 5d7d635288 Change getting-started.md with trajectory control
Trajectory Control commands weren't fully detailed.
2019-01-15 23:03:44 -04:00
Oskar Weigl aedb65027b Update getting-started.md 2019-01-14 22:12:21 -08:00
jaredairbusaerial c17b61a10f Improved power connection procedure information 2019-01-13 17:36:22 -05:00
Oskar Weigl 1627666cdf Update getting-started.md 2019-01-03 17:00:26 -08:00
Jasper Galvin a676071cef Update getting-started.md
I was trying to work out how to  enable To enable Circular position control but could only find info on discord so added here
2019-01-03 18:51:21 +08:00
Oskar Weigl 73bb86440d Update getting-started.md 2018-12-09 15:21:02 -08:00
Oskar Weigl 69d1364ce0 Update docs 2018-12-02 22:30:48 -08:00