Commit Graph
115 Commits
Author SHA1 Message Date
Unknown ecf1ccd25e Add stack_size vars, reduce stack usage 2019-09-25 22:47:40 -04:00
Unknown 857b0d9b53 Merge branch 'devel' into RazorsEdge 2019-09-22 13:24:28 -04:00
samuelsadok c49e679bd9 fix bad use of memcpy
memcpy is not guaranteed to work with overlapped memory areas, however memmove is.
Apart from the semantic difference this fixes a compiler warning and possibly previously unexplained occurrences of `ERROR_INVALID_STATE`.
2019-09-19 10:10:51 +02:00
Unknown 5a3fc8690f Remove homing offset compensation 2019-09-09 23:18:00 -04:00
Unknown 3f4433f50d Enable rudimentary dual-encoder support 2019-09-01 17:02:15 -04:00
Unknown 4ad2fc60a8 Reset vel_integrator_current when going into closed loop mode 2019-08-29 20:24:09 -04:00
Unknown b880d7986e Fix homing offset compensation per @riewert 2019-08-26 22:32:45 -04:00
Unknown 2e3768c329 Start moving casts and math functions to std:: 2019-08-25 17:13:10 -04:00
Unknown ec2cd83f1f Add compensation term for axis debounce during homing 2019-08-24 23:48:16 -04:00
Unknown 36f4dc0ada Add watchdog enable option 2019-08-24 21:50:59 -04:00
Unknown 2b58d15d8d Formatting pass 2019-08-20 23:13:54 -04:00
Paul Guenette 82beb16ae5 Fix odd behaviour during homing
Because the accelerations and velocities are so low during this phase, we were overshooting quite a bit.  Also, the pos_setpoint was wrong during the calculation of the trap_traj, so it was all sorts of screwed up.
2019-08-11 15:24:35 -04:00
Paul Guenette ca93c0e2d2 Add isHomed indicator 2019-08-11 12:30:24 -04:00
Paul Guenette fbd7ab2738 Improve the behaviour of the HOMING sequence 2019-07-18 17:29:21 +02:00
Paul Guenette 1494cb333f Merge remote-tracking branch 'madcowswe/lockin-refactor' into RazorsEdge 2019-06-22 17:04:29 +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
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
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 cf9857651e Make Homing use input_xxx values 2019-05-25 14:54:41 +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 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 687cf5b877 Merge branch 'Endstops' into develop 2019-05-25 13:53:38 +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
Oskar Weigl 9af9ea0bf0 add axis_num member 2019-05-15 23:06:45 -07:00
Paul Guenette e720b5239d Fix GPIO Subscribe issues 2019-04-23 22:03:25 +02:00
Paul Guenette 1e5b82ca8b Merge branch 'devel' into Endstops 2019-04-23 21:48:43 +02:00
Paul Guenette 09a164d0ca Add dc_bus_over_power error 2019-03-25 20:52:36 +01:00
Paul Guenette 5fee14a378 Merge branch 'devel' into feature/CAN 2019-03-23 09:33:42 +01:00
Oskar Weigl e94230275e add python side enum, fix instant timout on 1st iteration 2019-03-18 21:09:46 -07:00
Oskar Weigl fe0486aa8d Merge branch 'devel' into pr/Nomadluap/316 2019-03-18 20:24:19 -07:00
Paul Guenette 0a24ce3bf9 Fix minor CppCheck warning 2019-03-17 18:35:13 +01:00
Paul Guenette 1296537582 Assign different can_node_ids to each axis by default 2019-03-08 21:53:02 +01: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
Paul Guenette 40ad2a0060 Merge branch 'devel' into feature/CAN 2019-03-01 22:56:11 +01:00
Oskar Weigl e3785a2aa2 make index only active when required 2019-02-11 18:42:22 -08:00
Oskar Weigl f17c96360f push index and dir search into encoder object 2019-02-11 17:32:48 -08:00
Oskar Weigl 4b998a8b64 add vel argument to constant speed spoolup 2019-02-10 20:12:32 -08:00
Oskar Weigl 2a12c1ac61 Merge branch 'devel' into preroll 2019-02-10 20:11:18 -08:00
Paul Guenette 335604c652 Merge branch 'devel' into feature/CAN 2019-02-06 19:12:47 +01:00
Oskar Weigl a86fb3e59b add coherent sampling and 1.5 cycle pwm phase advance 2019-02-01 21:01:45 -08:00
Oskar Weigl 15983cc4f0 Thermal current limit with linear derating 2019-01-16 01:19:36 -08:00
Unknown e6dfa54d00 Merge branch 'devel' into Endstops 2018-12-06 23:37:04 -05:00
Unknown 966f4a1de3 Merge remote-tracking branch 'madcowswe/devel' into feature/CAN 2018-11-17 12:31:15 -05:00
Oskar Weigl b3890ef9ff add option to keep encoder count from startup value 2018-10-30 01:13:39 -07:00