uncrustify libraries/RC_Channel/RC_Channel.cpp

This commit is contained in:
uncrustify 2012-08-16 23:22:48 -07:00 committed by Pat Hickey
parent 02877cfe28
commit e9fb7cfd92

View File

@ -1,12 +1,12 @@
/* /*
RC_Channel.cpp - Radio library for Arduino * RC_Channel.cpp - Radio library for Arduino
Code by Jason Short. DIYDrones.com * Code by Jason Short. DIYDrones.com
*
This library is free software; you can redistribute it and / or * This library is free software; you can redistribute it and / or
modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
*
*/ */
#include <math.h> #include <math.h>
@ -141,13 +141,13 @@ RC_Channel::set_pwm(int16_t pwm)
{ {
/*if(_filter){ /*if(_filter){
if(radio_in == 0) * if(radio_in == 0)
radio_in = pwm; * radio_in = pwm;
else * else
radio_in = (pwm + radio_in) >> 1; // Small filtering * radio_in = (pwm + radio_in) >> 1; // Small filtering
}else{ * }else{
radio_in = pwm; * radio_in = pwm;
}*/ * }*/
radio_in = pwm; radio_in = pwm;
@ -172,12 +172,12 @@ RC_Channel::set_pwm(int16_t pwm)
} }
/* /*
// coming soon ?? * // coming soon ??
if(expo) { * if(expo) {
long temp = control_in; * long temp = control_in;
temp = (temp * temp) / (long)_high; * temp = (temp * temp) / (long)_high;
control_in = (int16_t)((control_in >= 0) ? temp : -temp); * control_in = (int16_t)((control_in >= 0) ? temp : -temp);
}*/ * }*/
} }
} }