1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

uncrustify --- somone forgot to run uncrustify when merging to next -

again!!! ;)
This commit is contained in:
Corvus Corax 2014-01-11 10:55:50 +01:00
parent 6d3dca6ee3
commit f2bc6508c4
2 changed files with 77 additions and 81 deletions

View File

@ -722,8 +722,7 @@ static void updateStabilizationDesired(ManualControlCommandData *cmd, ManualCont
if (stab_settings[2] == STABILIZATIONDESIRED_STABILIZATIONMODE_RATTITUDE) {
stabilization.StabilizationMode.Yaw = STABILIZATIONDESIRED_STABILIZATIONMODE_RATE;
stabilization.Yaw = cmd->Yaw * stabSettings.ManualRate.Yaw;
}
else {
} else {
stabilization.StabilizationMode.Yaw = stab_settings[2];
stabilization.Yaw =
(stab_settings[2] == STABILIZATIONDESIRED_STABILIZATIONMODE_NONE) ? cmd->Yaw :

View File

@ -617,8 +617,7 @@ static float bound(float val, float range)
// x small (0.0 < x < .01) so interpolation of fractional part is reasonable
static float stab_log2f(float x)
{
union
{
union {
volatile float f;
volatile uint32_t i;
volatile unsigned char c[4];
@ -638,10 +637,8 @@ static float stab_powf(float x, uint8_t p)
{
float retval = 1.0f;
while (p)
{
if (p&1)
{
while (p) {
if (p & 1) {
retval *= x;
}
x *= x;