Control Signals
-
- Beginner
- Posts: 27
- Joined: Tue May 05, 2020 2:05 am
Control Signals
Hi guys!!
I have some questions about the file power_distribution_stock.c
In this file we send motorPower to motors but I don't know what are the unites.
Are Newton Meter?
And Can I to obtain the motorPower information?
Thank you!!
I have some questions about the file power_distribution_stock.c
In this file we send motorPower to motors but I don't know what are the unites.
Are Newton Meter?
And Can I to obtain the motorPower information?
Thank you!!
Re: Control Signals
The motor power is more of a thrust percentage mapped to a uint16_t, where 0 is no trust and 65535 is full thrust. Its not really a unit in that sense.
Here is a page with some investigations (not converted to the new documentation structure yet): https://wiki.bitcraze.io/misc:investigations:thrust
Here is a page with some investigations (not converted to the new documentation structure yet): https://wiki.bitcraze.io/misc:investigations:thrust
-
- Beginner
- Posts: 27
- Joined: Tue May 05, 2020 2:05 am
Re: Control Signals
Thank you so much Kimberly!!
-
- Beginner
- Posts: 27
- Joined: Tue May 05, 2020 2:05 am
Re: Control Signals
Hi Kimberly!!
Can I see or obtain the information about uint16_t ?,
I want to see what is the thrust of each motor.
Thank you
Can I see or obtain the information about uint16_t ?,
I want to see what is the thrust of each motor.
Thank you
Re: Control Signals
This is a datatype, which is important to know for embedded programming. A uint16_t is an unsigned integer of 16 bit (2 bytes) long. Check out this link for the ranges but c coding guides should be able to explain this too on the internet.
-
- Beginner
- Posts: 27
- Joined: Tue May 05, 2020 2:05 am
Re: Control Signals
Hi Kimberly!!
Thank you and sorry for the delay.
So here in power_distribution_stock.c
Can I observer what is the information for each motor (motorPower.m1,m4)? or in this script i just can observer the uint16_t information?
Thank you and sorry for the delay.
So here in power_distribution_stock.c
Code: Select all
motorPower.m1 = limitThrust(control->thrust - r + p + control->yaw);
motorPower.m2 = limitThrust(control->thrust - r - p - control->yaw);
motorPower.m3 = limitThrust(control->thrust + r - p + control->yaw);
motorPower.m4 = limitThrust(control->thrust + r + p - control->yaw);
Re: Control Signals
Not exactly sure what you are looking for, but these values are defined as loggroups here , which you can see in the plotter in the cfclient
-
- Member
- Posts: 39
- Joined: Tue Jun 15, 2021 10:19 pm
Re: Control Signals
Hello,kimberly wrote: ↑Tue Jul 21, 2020 12:06 pm The motor power is more of a thrust percentage mapped to a uint16_t, where 0 is no trust and 65535 is full thrust. Its not really a unit in that sense.
Here is a page with some investigations (not converted to the new documentation structure yet): https://wiki.bitcraze.io/misc:investigations:thrust
Is there anyway to know the standard deviation of the value of the stabilizer.thrust?
Re: Control Signals
Hi! @darkknight Could you please start a new thread? This is a slightly different topic of what the original poster was asking about, also its a year old.
-
- Member
- Posts: 39
- Joined: Tue Jun 15, 2021 10:19 pm