Motor.monitor(); accessing monitor variables

Hi all i am encountering a strange problem where i want to access the variable motor.current.q and it will only show me 0 whereas when i use the function motor.monitor(); it shows me the readings. did anyoneelse encountered this problem when accessing the variables without the monitor function?

it won’t work if you are not running getFOCCurrents.

thanks for the hint i did it with these functions now :

 PhaseCurrent_s currents = current_sense.getPhaseCurrents();
    float current_magnitude = current_sense.getDCCurrent();
1 Like