a fork of priustroller

Dependencies:   mbed

Fork of priustroller_current by N K

Changes

RevisionDateWhoCommit message
55:f102d271e808 2015-05-21 nki still testing; default tip
54:e8d9bc885723 2015-05-19 bwang Velocity sensing added
53:ef62d7a958f2 2015-05-02 bwang throttle filter
52:4d4b2b3ef8dc 2015-05-02 nki derpy hobbyking fork;
51:14112834b067 2015-04-26 nki working, not chunky with 200A current limit. tested outside;
50:16b43e8fe04f 2015-04-24 nki inverter disable below 5% throttle. integrator zeroing implemented but not confirmed working;
49:0603121a0538 2015-04-21 nki calibrated current sensors;
48:28edb4c5c04b 2015-04-17 nki temp commit before revert
47:f5b1ff02c656 2015-04-16 bwang further bugfix
46:bd39f7e6e37f 2015-04-16 bwang bug fixed in testcode
45:a478506acc92 2015-04-16 bwang fixed syntax errors
44:1be63ea70fe8 2015-04-16 bwang latest working code
43:fb4b7b0c8f34 2015-04-16 bwang Fixed a typo;
42:e4f35ff78d91 2015-04-16 bwang Scrapped everything for some test code
41:0a573cf3e9b9 2015-04-16 nki spins forwards fine, still clicks;
40:b2bd9a097e3f 2015-04-16 nki spins (backwards)
39:6f3d08745cd9 2015-04-16 bwang fixed throttle in test
38:232c51b6853f 2015-04-16 bwang Revert to basic open loop control for debugging
37:09373294ff22 2015-04-16 nki dump not quite working;
36:11766b5da6ed 2015-04-16 nki running code, buggy at high current
35:83cf9564bd0c 2015-03-16 bwang Set for 3A Iq, 0A Id, Ki = 1e-3, Kp = Kd = 0, loop still oscillates but is passable
34:bfe180de813a 2015-03-16 nki [WORKING] current loop closed, signs of (Iq, Id) and (Vq, Vd) aligned.
33:e7b132029bae 2015-03-16 nki New working set - reverted to synchronous current sensor reads
32:4e1a223fad52 2015-03-16 nki Crunchy motor, temp commit for reverting
31:86b87913d8e1 2015-03-15 bwang Current sensor zeroing about as good as I can get it;
30:2b6d426f3bfc 2015-03-15 nki New interrupt driven current-sensing; current sensors have a ~0.2A offset
29:cb03760ba9ea 2015-03-14 nki Cautionary commit, possibly works
28:af9d43bcb371 2015-03-14 bwang [NONWORKING] Switched sensors to delay-based NativeAnalogIn class
27:846c08fb3697 2015-03-14 nki NONWORKING: debugging native ADC reading
26:d00561c7bf43 2015-03-10 bwang Separate loop constants for Id and Iq
25:0003b824dd7d 2015-03-10 nki fixed swapped _kp and _kd in context.cpp; doesn't run great with the loop closed.;
24:f1ff9c7256b5 2015-03-09 bwang Added multi-channel debug logger in debug/, set up #channels and depth in main(), write in log() function. motor stops turning after trace is captured, requires reset to restart
23:7366022ea0ab 2015-03-09 bwang curious, very curious...see modulator.cpp for details
22:46d164aa4f1c 2015-03-09 nki SVM table now correct. 2.05A at 65V,; todo: correct 50% dtc at 0 throttle; incorporate PI control
21:da41c08e51bc 2015-03-09 nki fixed an issue with the debug output
20:3a7eae543153 2015-03-09 bwang restored SinusoidalModulator::Update to its nominal state (2.19A@20V); SVM does not work in this revision
19:280c62c71cf8 2015-03-09 bwang stylistic changes (SVM code in the right class now); NOTE: SinusoidalModulator currently does nothing
18:a58bcda36b08 2015-03-09 nki added SVM code to modulators.cpp
17:fd6771a6685a 2015-03-09 bwang tweaks to debugging code - debug registers are now global; define aliases to them in includes.h
16:c10d0aa3c0e1 2015-03-09 bwang reworked serial so that printing is possible even outside of contexts
15:d754b71a1290 2015-03-09 nki Added SVM code to modulators.cpp;
14:1cc975207995 2015-03-09 bwang added stubs for SVM, modulation scheme is still the same as last time
13:79e247e54d78 2015-03-09 bwang fixed a bug in position sensor initialization + hack in modulators.cpp to make motor turn, 2.19A@20V
12:c35ad58f6620 2015-03-08 bwang misc documentation changes
11:dccbaa9274c5 2015-03-08 bwang --Initial Commit: 03-08-2015 new context-based code; no more timers (=easier debugging)
10:b4abecccec7a 2015-03-08 nki uguu;
9:d3b70c15baa9 2015-03-06 nki loop is closed.;
8:b92043d76919 2015-03-05 nki this is the working-est (still open loop) class based code. sets inverter outputs to lutsin
7:76d6ceb23e0d 2015-03-05 nki uh what;
6:99ee0ce47fb2 2015-03-04 nki 3/4;
5:ee1e6c84c302 2015-03-03 nki hi there;
4:fdadf4a3577a 2015-03-02 nki motor spins;
3:0a2396597e0d 2015-03-02 bwang should turn moter
2:8696a62a4077 2015-03-01 bwang latest
1:1f58bdcf2956 2015-03-01 bwang moar
0:54cf32d35f4d 2015-03-01 bwang first publish