Commit Graph

20 Commits

Author SHA1 Message Date
Benjamin Vedder 0f12cb7d50 First round of cleanup 2022-02-19 18:51:34 +01:00
Jakub Tomczak d37a34ccee sin_conf function + post merge fixes 2022-01-27 10:53:00 +01:00
Jakub Tomczak da4b3e0edd Merge branch 'master' into dev_fw_5_03 2022-01-21 15:07:44 +01:00
Jakub Tomczak 2a120615be encoders to encoder refactor 2022-01-09 17:10:40 +01:00
Benjamin Vedder af55c79a2a Renamed foc_f_sw to foc_f_zv 2022-01-06 20:44:00 +01:00
Jakub Tomczak 1f8a2cebfb init by encoders_type_t parameter, memory use convenient structures 2022-01-02 16:35:55 +01:00
Jakub Tomczak 4743194894 old encoder files deleted 2021-12-20 14:18:51 +01:00
Jakub Tomczak 16dd3a3c7f restructuring 2021-12-17 16:18:07 +01:00
Jakub Tomczak 612f7a5090 ABI integrated 2021-12-15 13:44:23 +01:00
Jakub Tomczak f26f3beb2d WIP: 3 encoders partially implemented, AS504x tested
compiled on gcc-arm-none-eabi-7-2018-q2
2021-12-14 16:40:40 +01:00
Kenn Sebesta bec06ac85a [Utils] Change convenience multiplication factors into convenience MACROs 2021-10-13 14:18:05 -04:00
Kenn Sebesta aeb5d74488 [Utils] Use convenience macros for deg/rad conversions 2021-10-13 11:52:04 -04:00
Benjamin Vedder 8900c41c34 First phase filter and offset calibration attempt 2021-02-28 20:36:02 +01:00
Maximiliano Cordoba 4a9bf528a9 Fix virtual motor to work with latest Vesc v5.
connect_virtual_motor_command only requires 3 arguments, load torque, load inertia and battery voltage.
The rest of the motor characteristics, are taken from already existant variables in VESC motor configuration.

Solved issue with encoder sensor configuration.

Solved fault gate driver undervoltage

Improved hardware dependency defines in virtual motor.c

Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2020-06-20 13:36:56 -03:00
Benjamin Vedder 52e17059e5 Major restructuring for dual motor support, and added unity hw files 2020-03-16 18:32:39 +01:00
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