What are m1 m2 m3 m4

Discussions about quadcopters/multi-rotors
Post Reply
giandoman
Member
Posts: 37
Joined: Wed Sep 27, 2017 1:23 pm

What are m1 m2 m3 m4

Post 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
😊
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: What are m1 m2 m3 m4

Post 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.
DarkKnight
Member
Posts: 39
Joined: Tue Jun 15, 2021 10:19 pm

Re: What are m1 m2 m3 m4

Post 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?
DarkKnight
Member
Posts: 39
Joined: Tue Jun 15, 2021 10:19 pm

Re: What are m1 m2 m3 m4

Post 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
Post Reply