Commit Graph

5 Commits

Author SHA1 Message Date
Benjamin Vedder a80829f5c5
Merge pull request #90 from powerdesigns/virtual-motor-update
Updated virtual motor library
2019-05-04 10:48:47 +02:00
Marcos Chaparro 1d08745376 Axiom control board support
Rename paltatech naming to Axiom.

For safety set Axiom default max input voltage to 0.0V so it can not run a
motor without mc_conf being explicitly configured by the user.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-27 08:21:46 -03:00
Maximiliano Cordoba 0841a9ce87 updated virtual motor library, adding pole pair numbers into the model, changing variable names to better address the purpose of them, and including flux linkage into the id calculation.
Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2019-04-26 11:49:30 -03:00
Marcos Chaparro 29934c90b6 Fix codacy warning
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-06 10:46:34 -03:00
Maximiliano Cordoba 4a94d0ec4c Add command to connect a virtual motor with configurable parameters
This commit adds a motor model running within the vesc firmware,and
from the vesc terminal a user or a test script can set the
mechanical load torque, inertia, phase resistance, Lq and Ld phase
inductances (this generic model includes IPM motors), flux linkage
and battery voltage.

Virtual motor parameters set at the command line should match with
vesc configuration, for example phase resistance, inductance and
flux linkage should match and have the correct observer gain.
Observer works with the virtual motor, with some hiccups during
startup
For solid results its better to use sensored mode. If vesc is
configured to use an SPI encoder the virtual motor phase angle
will be injected as an encoder angle readout.

For safety PWM outputs are disabled during simulation.

Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2019-04-06 10:36:00 -03:00