Commit Graph
51 Commits
Author SHA1 Message Date
Oskar Weigl 9af9ea0bf0 add axis_num member 2019-05-15 23:06:45 -07:00
Oskar WeiglandWetmelon 8695f1fc6e Apply comment suggestions from code review
Co-Authored-By: Wetmelon <Wetmelon@users.noreply.github.com>
2019-03-19 07:10:04 +01:00
Paul Guenette 2e71e81dd1 Call load_configuration before any threads start 2019-03-17 20:33:14 +01:00
Oskar Weigl cb77fd4112 Merge pull request #307 from durka/patch-1
Increase stack sizes
2019-02-11 18:59:40 -08:00
Alex Burka 301d0d807e make stack overflows debuggable
Now if you break on vApplicationStackOverflowHook in a debugger, you can see which thread overflowed.
2019-01-29 22:31:17 -05:00
Oskar Weigl df2067c544 Merge branch 'pr/kalvdans/243' into devel 2018-12-17 13:54:32 -08:00
Oskar Weigl 209839d2a7 remve uart stepdir interlock: stepdir now takes priority 2018-10-22 21:28:15 -07:00
Oskar Weigl b09d1e9e25 make step/dir pins configurable 2018-10-22 21:03:13 -07:00
Oskar Weigl e88abb56eb pull in configs and enum into class for Axis and Motor, for consistency 2018-09-24 22:59:36 -07:00
Oskar Weigl 327ac51abf rewrite cpp side of trapezoidal trajectory 2018-09-24 22:45:04 -07:00
Unknown 8392f69b1c Add missing default trapTrajConfig creation 2018-09-21 18:37:46 -04:00
Christian Häggström cc0f083bf0 Poll analog inputs to drive a configured endpoint. 2018-09-13 14:28:49 +02:00
Unknown c65e7265e7 Move traj planning config to trap_traj config object 2018-09-03 17:13:14 -04:00
Unknown 03bf297bd8 Add TrapTraj to Axis and Controller. Add move_to_pos funciton 2018-09-01 23:39:31 -04:00
Oskar Weigl 2e07e0cdd3 make a sensorless config 2018-06-23 21:37:47 -07:00
Oskar Weigl a9b03dd4df Merge branch 'devel' into powerwheels 2018-06-21 21:41:36 -07:00
Oskar Weigl 8cc735aeac fix usage of GPIO_5 for ODrive v3.2 2018-06-06 00:18:25 -07:00
Oskar Weigl f8306741bc Merge branch 'devel' into sam_user_adc 2018-06-05 23:40:50 -07:00
Oskar Weigl 2a7743ef0b Merge branch 'devel' into fw4 2018-06-05 23:13:58 -07:00
Oskar Weigl c13bee09ed Merge remote-tracking branch 'origin/pwm-in' into powerwheels 2018-05-15 16:55:46 -07:00
Samuel Sadok d3105cfcaf expose PWM mappings as endpoint_ref 2018-05-15 16:43:44 -07:00
Oskar Weigl aefd331488 Merge branch 'pwm-in' into powerwheels 2018-05-15 10:48:18 -07:00
Samuel Sadok 359eab32f6 implement PWM input 2018-05-15 10:10:55 -07:00
Samuel Sadok 8339311c35 make ADC work 2018-05-14 19:06:09 -07:00
Samuel Sadok 1e47f5c3e8 Merge branch 'devel' into sam_user_adc 2018-05-14 17:40:18 -07:00
Samuel Sadok 5770216010 save and restore configuration during DFU 2018-05-12 15:26:51 -07:00
Samuel Sadok f7fa729c38 make ADC work 2018-04-27 18:21:39 -07:00
Samuel Sadok 4240ba6074 Merge branch 'sam_user_adc' into project-r 2018-04-27 17:50:48 -07:00
Samuel Sadok b064800116 Add general purpose ADC API
ADC1 is configured to sample channels 0 to 15 continuously
at about 30kHz. Users can now set their GPIO of choice to
analog mode (as long as it's wired to one of the analog
channels) and then read the voltage at any time.

The values can be read like this:

GPIO_set_to_analog(GPIO_3_GPIO_Port, GPIO_3_Pin);
my_voltage = get_adc_voltage(GPIO_3_GPIO_Port, GPIO_3_Pin);
2018-04-27 17:46:56 -07:00
Oskar Weigl 52b179d498 working hall, suspect commutation angle noise 2018-04-27 00:26:43 -07:00
Samuel Sadok af502d349b continue operation after temporary I2C bus errors 2018-04-24 19:37:21 -07:00
Samuel Sadok 62dd4a9a6a Merge branch 'sam_i2c' into project-r 2018-04-24 18:26:54 -07:00
Samuel Sadok c0ac611e4b implement protocol over I2C 2018-04-24 18:07:51 -07:00
Samuel Sadok 861a26735c Merge branch 'sam_disable_dfu' into sam_oskar_testing 2018-04-24 13:41:53 -07:00
Samuel Sadok dc303606b1 fix USB TX lockup issue
When the host reset the connection without reading the response packet first, the TX-empty semaphore would never get released, thereby blocking any further TX communication. This commit just overrides the TX buffer if the semaphore wait times out.
2018-04-23 19:03:55 -07:00
Samuel Sadok 535dbcf481 add system_stats to monitor resource usage 2018-04-23 19:03:55 -07:00
Samuel Sadok 1f504d1d99 Merge branch 'sam_testing' into sam_oskar_testing 2018-04-21 23:11:36 -07:00
Samuel Sadok 96d2bc81f2 Merge branch 'sam_refactoring' into sam_testing 2018-04-21 22:22:42 -07:00
Samuel Sadok e581cc9c90 move enable_dfu_mode() to main.cpp 2018-04-21 22:09:54 -07:00
Samuel Sadok 1d7bf6b467 Merge branch 'devel' of github.com:madcowswe/ODrive into sam_refactoring 2018-04-21 00:07:31 -07:00
Samuel Sadok 741a51442f split communication into multiple files 2018-04-20 23:44:55 -07:00
Samuel Sadok abdb037d75 move communication related files 2018-04-20 21:33:39 -07:00
Oskar Weigl 8407721744 fix external interrupts, step dir now working 2018-04-17 03:21:03 -07:00
Samuel Sadok 1718e5c397 Merge branch 'sam_python_fixes' into sam_testing 2018-04-09 18:32:38 -07:00
Samuel Sadok 61983a10da store encoder_configs and controller_configs in NVM 2018-04-07 12:30:37 -07:00
Samuel Sadok 1f732bb0fb fix stack overflow 2018-03-09 20:23:03 -08:00
Samuel Sadok 93d6a787cd Merge branch 'devel' of github.com:madcowswe/ODrive into sam_refactoring 2018-03-09 16:01:18 -08:00
Samuel Sadok 9486f9ed15 make stuff working again, improve state machine design, add underscore to member names 2018-03-09 13:37:07 -08:00
Samuel Sadok f5081352b3 refactor protocol 2018-03-08 12:56:24 -08:00
Samuel Sadok 97aedd46e9 Sanitize error handling and state machine, move common stuff to odrive_main.hpp 2018-03-04 15:49:48 -08:00