Commit Graph
77 Commits
Author SHA1 Message Date
PAJohnson e5ace9ecc8 Changed default values of vel_gain, vel_integrator_gain and torque_constant to work with ODrive branded motors.
Changed units in comments from A to Nm where appropriate.
2020-06-18 18:32:24 -04:00
PAJohnson f19f57779b Changed vel_gain, vel_integrator_gain and torque_constant to work out of the box with ODrive branded motors.
Removed unused variable torque_lim_margin
Changed default value of torque_lim to +inf
2020-06-18 18:27:19 -04: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
pjohnson e2527ec468 added torque_constant to motor config struct and interface file
changed all instances of current_setpoint to torque_setpoint
modified limitVel() to use torque instead of current units
removed effective_current_lim, added effective_torque_lim()
added torque_lim to motor config struct and interface file
2020-06-16 15:55:18 -04:00
Samuel Sadok fb7cabef5b make all other interfaces children of ODrive 2020-05-29 10:25:06 +02: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 3d07325022 remove aligned formatting of assignments 2020-05-20 12:27:28 +02:00
Samuel Sadok a5fd9dbeff make explicit c_is_class a requirement
remove inheritance from config
2020-05-15 16:32:27 +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
Unknown 574190e433 Change trap_traj timer to be more robust 2020-04-21 20:39:10 -04: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
Oskar Weigl 27add54b3f move vel_ramp_enable into controller.config 2019-10-07 16:19:30 -07:00
Unknown 970f740963 Fix fibre definitions formatting & remove AlignConsecutiveAssignments 2019-09-27 22:14:08 -04:00
Samuel Sadok 82e8cd64fb cosmetic changes 2019-09-27 18:01:38 +02:00
Samuel Sadok f8ea7d5684 [homing] make separate control mode
[endstops] enable in all control modes
[load encoder] use load encoder more consequently
2019-09-23 12:23:27 +02:00
Unknown 9e782cce7b Revert "Formatting pass"
This reverts commit 2b58d15d8d.
2019-09-15 01:15:51 -04:00
Unknown 3f4433f50d Enable rudimentary dual-encoder support 2019-09-01 17:02:15 -04:00
Unknown e9c8eb6c03 Add mirror_ratio 2019-08-31 19:20:47 -04:00
Unknown f4e2c3d286 Add mirror mode 2019-08-31 18:03:00 -04:00
Unknown 5df4ceda33 Add current ramping input mode 2019-08-31 17:41:32 -04:00
Unknown 63bebaa8de Add "enable" switches for controller options 2019-08-24 21:44:23 -04:00
Unknown 2b58d15d8d Formatting pass 2019-08-20 23:13:54 -04:00
Unknown 4ba522b139 Add pre_calibrated, enable anticogging at index search if trrue 2019-08-18 11:43:24 -04:00
Paul Guenette ec05f7e45a Make sure the trajectory mode exits to avoid rollover issues 2019-06-03 21:07:49 +02:00
Paul Guenette 0f7337743c Add input_pos_updated var to avoid race conditions with comms thread 2019-06-01 14:08:16 +02:00
Paul Guenette 73df226fc3 Merge anti_hunt 2019-05-25 19:38:52 +02:00
Paul Guenette 05711d1eba Bring the anti-hunt functionality back 2019-05-25 19:35:15 +02:00
Paul Guenette 9e2476ed65 Remove anticogging_valid from config for now 2019-05-25 18:20:09 +02:00
Paul Guenette 5a812701a3 Fix some merging pains with the anticogging_saver 2019-05-25 17:47:06 +02:00
Paul Guenette 3fa49918c7 Merge branch 'anticogging_saver' into RazorsEdge 2019-05-25 17:45:09 +02:00
Paul Guenette dfca556185 Add anticogging config properties to protocol 2019-05-25 17:04:55 +02:00
Paul Guenette cc36edeabf Merge branch 'anticogging_saver' into RazorsEdge 2019-05-25 14:16:46 +02:00
Paul Guenette 104e4413c9 Fix input_filter integration issues 2019-05-25 14:07:44 +02:00
Paul Guenette bfa4c154bc Merge branch 'input-filter' into RazorsEdge 2019-05-25 13:58:49 +02:00
Paul Guenette bc805a86c9 Write instructions for endstops branch 2019-05-25 12:28:56 +02:00
Paul Guenette 301d68adc6 Move anticogging_t into config, use a fixed size array and scale 2019-05-23 18:56:34 +02:00
Paul Guenette 1e5b82ca8b Merge branch 'devel' into Endstops 2019-04-23 21:48:43 +02:00
Oskar Weigl 499d33d788 change to explicit pos-writing callback for trajectory updates 2019-03-19 19:47:52 -07:00
Oskar Weigl 933e3068ae Merge branch 'devel' into input-filter 2019-03-19 18:15:52 -07:00
Paul Guenette b5f5b0396d Declare single-argument constructors explicit 2019-03-17 20:43:18 +01:00
Oskar Weigl 9786af0a25 Merge branch 'devel' into pr/Wetmelon/259 2019-02-11 19:05:22 -08:00
Unknown 33aeb1d5a8 remove set_xxx_setpoint and move_to_pos functions 2019-01-02 13:10:23 -05:00
Unknown f888fd171e Make xxx_setpoint properties read-only 2019-01-02 13:10:02 -05:00
Unknown 1fc6bc90aa Move trajectory planner handling into the input filter 2019-01-02 13:09:36 -05:00
Unknown 01b557122e Fix missing comma 2018-12-06 23:37:36 -05:00
Unknown e6dfa54d00 Merge branch 'devel' into Endstops 2018-12-06 23:37:04 -05:00
Oskar Weigl e9082f5621 implemented pos filter, but something is wrong with overshoot and vel matching 2018-12-02 20:49:17 -08:00