Fork and fix for mwork

Dependencies:   mbed-dev-f303 FastPWM3 millis

Revisions of main.cpp

Revision Date Message Actions
59:568e7be5232f 2020-06-29 add controller.p_des = controller.theta_mech - (controller.t_ff / controller.kp) ; for first enable. File  Diff  Annotate
58:fb799e99a5f7 2020-06-29 Fix macro.h; Add controller.p_des = controller.theta_mech + 0.710 for don't return when motor enable File  Diff  Annotate
57:c26b0093783b 2020-06-27 Add default PID value File  Diff  Annotate
56:eaf75bcad361 2020-06-26 add File  Diff  Annotate
55:fee62d8fd8fb 2020-06-26 change serial printf File  Diff  Annotate
54:3e056b097c52 2020-03-03 Working on step/dir File  Diff  Annotate
53:349304b6d937 2020-02-28 - Added a bunch of debugging options from the main menu; - Testing step and direction ideas via f & r commands. File  Diff  Annotate
52:cf8b2abf811d 2020-02-27 Playing around wit ha few ideas File  Diff  Annotate
51:6cd89bd6fcaa 2019-07-17 adding field-weakening to the user menu, switch "torque limit" to "current limit" File  Diff  Annotate
50:ba72df25d10f 2019-04-04 updates_for_publish; File  Diff  Annotate
49:83d83040ea51 2019-04-04 testing_commit; File  Diff  Annotate
48:74a40481740c 2019-03-03 Working on the new hardware File  Diff  Annotate
47:e1196a851f76 2018-12-05 albert revision; File  Diff  Annotate
46:2d4b1dafcfe3 2018-07-12 calibration frees up memory when done; File  Diff  Annotate
45:26801179208e 2018-06-27 Lots of changes, seems to have broken calibration File  Diff  Annotate
44:8040fa2fcb0d 2018-06-11 new drv chip working; File  Diff  Annotate
43:dfb72608639c 2018-05-25 re-ordered main() so CAN powerup order doesn't break things; File  Diff  Annotate
42:738fa01b0346 2018-05-25 separated CAN stuff out of main File  Diff  Annotate
41:304ac2affb23 2018-05-24 back to normal File  Diff  Annotate
40:cd7e837b2b93 2018-05-24 joao flywheel version; File  Diff  Annotate
39:3580a907ef93 2018-05-14 derp; File  Diff  Annotate
38:67e4e1453a4b 2018-05-14 Fixed bug introduced into the calibration procedure when absolute zero offset was added File  Diff  Annotate
37:c0f352d6e8e3 2018-04-13 always samples position sensor File  Diff  Annotate
36:d88fd41f60a6 2018-03-02 updated mbed-dev to latest version, fixing 16-bit spi issues File  Diff  Annotate
34:51647c6c500d 2017-11-08 testing new things File  Diff  Annotate
32:ccac5da77844 2017-08-30 Firmware version 1.0.1. ; Added firmware version number to debug stream; File  Diff  Annotate
30:db9081ac5658 2017-08-28 Broken, will come back to this; File  Diff  Annotate
28:8c7e29f719c5 2017-06-04 Use external oscillator File  Diff  Annotate
27:501fee691e0e 2017-05-17 Setting PWM ARR value in config file now propagates everywhere. File  Diff  Annotate
26:2b865c00d7e9 2017-05-01 - Added CAN Send/Receive; - Updated to most recent MBED (Broke SPI 16-bit read/write. Hacked to work with 2 8-bit writes now); - Removed most sine/cos calculations; - Fixed sign error in autocalibration routine File  Diff  Annotate
25:f5741040c4bb 2017-04-09 Set current bandwidth from serial interface File  Diff  Annotate
24:58c2d7571207 2017-04-07 Can flush preferences multiple times now File  Diff  Annotate
23:2adf23ee0305 2017-04-05 Added bayley's flash writer File  Diff  Annotate
22:60276ba87ac6 2017-03-31 Encoder autocalibration for dc offset and harmonics File  Diff  Annotate
20:bf9ea5125d52 2017-03-02 Compact version works.; File  Diff  Annotate
19:bd10a04eedc2 2017-02-14 commit b4 fork; reorganizing coming File  Diff  Annotate
18:f1d56f4acb39 2016-12-11 Working CAN Torque Command for Dyno-ing; File  Diff  Annotate
17:3c5df2982199 2016-12-10 Initial CAN Import; File  Diff  Annotate
15:ef00814e38e2 2016-12-10 getting ready to add CAN Bus; File  Diff  Annotate
14:80ce59119d93 2016-10-31 Misc. changes. Finally fixed transforms (turns out B and C current measurements were accidentally swapped) File  Diff  Annotate
12:c473a25f54f7 2016-05-22 experimental feed-forward decoupling; File  Diff  Annotate
11:c83b18d41e54 2016-05-22 summer cleaning; File  Diff  Annotate
10:370851e6e132 2016-05-12 Now featuring hobbyking startup tone! File  Diff  Annotate
9:d7eb815cb057 2016-05-10 Fixed current scaling hack File  Diff  Annotate
8:10ae7bc88d6e 2016-04-13 Multi-turn mechanical position, MA700 position sensing over SPI. Placeholder torque controller for cogging/ripple compensation; File  Diff  Annotate
7:dc5f27756e02 2016-03-29 propper svm; File  Diff  Annotate
6:4ee1cdc43aa8 2016-03-12 Switched from sinusoidal pwm to svm File  Diff  Annotate
4:c023f7b6f462 2016-03-12 serial debugging; File  Diff  Annotate
3:6a0015d88d06 2016-03-09 more motter; File  Diff  Annotate
2:8724412ad628 2016-02-19 now uses TIM1 for PWM - makes layout for micro-on-board version much easier File  Diff  Annotate
1:b8bceb4daed5 2016-02-05 Added some comments, cleaned things up a bit File  Diff  Annotate
0:4e1c4df6aabd 2016-02-05 It works! File  Diff  Annotate