Page 1 of 1

What are m1 m2 m3 m4

Posted: Thu May 20, 2021 7:29 am
by giandoman
Hello, maybe it is a “stupid” question but I want to be sure about this: what do m1…m4 represent in the motorpower log data?
Speed in rpm? Or a integer number proportional
To that?
Thanks
😊

Re: What are m1 m2 m3 m4

Posted: Thu May 20, 2021 7:37 am
by tobias
It is the PWM (Pulse With Modulation) value that can be seen as a "throttle/power" value where MAX_UINT16 (65535) is max throttle/power and 0 no throttle/power.

Re: What are m1 m2 m3 m4

Posted: Fri Aug 13, 2021 2:30 pm
by DarkKnight
Hi, tobias,

I have another question: I have seen there are two different type of data, one is called"motor.m1, motor.m2, motor.m3 and motor.m4"; another one is called"pwm.m1_pwm, pwm.m2_pwm, pwm.m3_pwm, and pwm.m4_pwm". Do you know what is the difference between them? According to your above reply, it seems that they are both PWM (Pulse With Modulation) value that can be seen as a "throttle/power" value where MAX_UINT16 (65535) is max throttle/power and 0 no throttle/power, is that true?

Re: What are m1 m2 m3 m4

Posted: Fri Aug 13, 2021 10:18 pm
by DarkKnight
pwm.m1_pwm data is the pwm signal but compensated for the battery voltage And the motor.m1 data is the pwm signal not compensated for battery voltage. I got the answer from this postviewtopic.php?f=6&t=4761&p=22882#p22882