make clean
make -j
- to debug with ozone first set
g_dbg_overrideto 1 - always make sure robot ID in
config.hmatches the dribbler ID when flashing firmware - if dribbler mounting changed, re-calibrate
g_mag_encoder_offset_dbg
mode = 0: Open Control Mode mode = 1: Velocity Control Mode mode = 2: Torque Control Mode mode = 3: Current Control Mode
- set
g_dbg_daxis_lockto 1 - set
g_openloop_vf_offset_dbgto 0.6,g_openloop_vq_limit_dbqlimits this offset value - set
g_dbg_motor_startto 1, check that motor is locked into some angle - set
g_openloop_omega_e_dbgto 10 -> 20 -> 50, obverse the encoder changes continuously from ozone Timeline, if drop occasioanlly to zero this is a error frame thingy, check for alignment in AS5048A and diametric magnetc, occasional error frames will be ignored and is ok
- always set
g_dbg_motor_startto0before starting anything - all openloop dbg variables doesn't matter for this
- set
modeto3 - make sure
g_dbq_id_targetandg_dbq_iq_targetare set to safe values below0.7(?) current commands - start motor
- for torque generating you only need
iq, setidto zero - for current mode control at a
iqcommand of 1.0 the current should not exceed ~500mA