Commit Graph
562 Commits
Author SHA1 Message Date
Paul Guenette cbc23de7b7 Add axis.clear_errors() function 2019-07-08 23:07:47 +02:00
Paul Guenette 1494cb333f Merge remote-tracking branch 'madcowswe/lockin-refactor' into RazorsEdge 2019-06-22 17:04:29 +02:00
Paul Guenette 7e569a2e1d Further reduce the complexity of the limitVel algorithm 2019-06-21 21:52:10 +02:00
Paul Guenette c861cc0b46 Make inputs to limitVel function const 2019-06-21 17:20:16 +02:00
Paul Guenette 4c623f2068 Implement better algorithm 2019-06-21 16:55:15 +02:00
Paul Guenette 544933bb44 Add a lot more velocity limiting tests, implement it 2019-06-19 23:13:20 +02:00
Paul Guenette da27153f5e Add unit tests for current_vel_limit (failing) 2019-06-19 22:36:40 +02:00
Yannis Chatzikonstantinou 313bd9fe9e add check for vel_gain > 0 2019-06-14 22:53:04 +03:00
Yannis Chatzikonstantinou cfb0e11272 add check for vel_limt == 0 2019-06-14 22:48:57 +03:00
Ioannis Chatzikonstantinou ec27bed59a Merge branch 'devel' of https://github.com/madcowswe/ODrive into current_vel_limit 2019-06-13 11:31:32 +03:00
Ioannis Chatzikonstantinou 7b232b4f8a better naming 2019-06-13 10:31:26 +03:00
Ioannis Chatzikonstantinou fc5022fde0 velocity limiting in current control mode 2019-06-13 10:27:07 +03:00
Paul Guenette ec05f7e45a Make sure the trajectory mode exits to avoid rollover issues 2019-06-03 21:07:49 +02:00
Ben Wang a3755b848d use default constructor for general lockin struct 2019-06-03 12:06:50 -04:00
Paul Guenette e8a6698fa5 Merge branch 'devel' into RazorsEdge 2019-06-03 00:30:25 +02:00
Oskar Weigl ce8949f774 add current limit tolerance and current lim violation error check 2019-06-02 14:53:58 -07:00
Paul Guenette 0f7337743c Add input_pos_updated var to avoid race conditions with comms thread 2019-06-01 14:08:16 +02:00
Ben Wang f69685df13 refactor lockin mode into separate variables for sensorless spinup, encoder calibration and general (user initiated) mode 2019-05-29 16:26:07 -04:00
Paul Guenette 12664d141d Remove the ability to home the axis with requested_state = AXIS_HOMING 2019-05-27 17:17:20 +02:00
Oskar Weigl f57b71825f Merge branch 'master' into devel 2019-05-26 18:55:53 -07:00
Paul Guenette a4cdac52b8 Change move_incremental to use input_pos 2019-05-26 22:39:54 +02:00
Paul Guenette d95d0bc283 Fix call to input_pos_updated() 2019-05-26 22:39:37 +02:00
Paul Guenette 0d6be2869b step callback needs to increment input_pos, not pos_setpoint 2019-05-26 19:52:46 +02:00
Paul Guenette 0c270eaa61 Remove SPI_COM_FAIL error, add spi_error_rate_ to protocol 2019-05-25 21:22:07 +02:00
Paul Guenette 73fbd0d54d Try to delay SPI error counting during initialization 2019-05-25 21:11:43 +02:00
Paul Guenette 59d7bb405c Add missing encoder modes for coherent sampling 2019-05-25 20:42:26 +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 949ad66124 Fix anticogging_calibration where cpr != 3600 2019-05-25 18:07:02 +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 6654b3a375 Just fetch the cogging ratio every time we need it 2019-05-25 17:29:25 +02:00
Paul Guenette dfca556185 Add anticogging config properties to protocol 2019-05-25 17:04:55 +02:00
Paul Guenette 3dc969ad15 Merge branch 'Non-Blocking_Absolute_SPI' into RazorsEdge 2019-05-25 14:56:26 +02:00
Paul Guenette cf9857651e Make Homing use input_xxx values 2019-05-25 14:54:41 +02:00
Paul Guenette eb385f0bb9 Remove set_pos_setpoint calls 2019-05-25 14:18:50 +02:00
Paul Guenette cc36edeabf Merge branch 'anticogging_saver' into RazorsEdge 2019-05-25 14:16:46 +02:00
Paul Guenette 820fd72ae8 Merge branch 'bugfix/watchdog_fix' into RazorsEdge 2019-05-25 14:15:24 +02:00
Paul Guenette 6eab69f196 Merge branch 'feature/255-encoder-protocol' into RazorsEdge 2019-05-25 14:14:42 +02:00
Paul Guenette d0533f7ebb Merge branch 'feature/269-brake-current' into RazorsEdge 2019-05-25 14:14:37 +02:00
Paul Guenette 987a14b8c7 Merge branch 'feature/63-dc-bus-limit' into RazorsEdge 2019-05-25 14:14:20 +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 f8bc5117b6 Merge branch 'devel' into input-filter 2019-05-25 13:57:30 +02:00
Paul Guenette 3c144749cd Fix bad enum 2019-05-25 13:55:37 +02:00
Paul Guenette 687cf5b877 Merge branch 'Endstops' into develop 2019-05-25 13:53:38 +02:00
Paul Guenette bc805a86c9 Write instructions for endstops branch 2019-05-25 12:28:56 +02:00
Paul Guenette 2abae9034b Change how the watchdog_reset_ value is handled 2019-05-24 23:54:38 +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