Browse Source

Flipped the signs. Should be right.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1500 f9c3cf11-9bcb-44bc-f272-b75c42450872
master
jasonshort 14 years ago
parent
commit
c960235f7e
  1. 8
      ArduCopterMega/control_modes.pde

8
ArduCopterMega/control_modes.pde

@ -98,15 +98,15 @@ void read_trim_switch() @@ -98,15 +98,15 @@ void read_trim_switch()
void trim_accel()
{
if(rc_1.control_in > 0){
imu.ay(imu.ay() + 1);
}else if (rc_1.control_in < 0){
imu.ay(imu.ay() - 1);
}else if (rc_1.control_in < 0){
imu.ay(imu.ay() + 1);
}
if(rc_2.control_in > 0){
imu.ax(imu.ax() + 1);
}else if (rc_2.control_in < 0){
imu.ax(imu.ax() - 1);
}else if (rc_2.control_in < 0){
imu.ax(imu.ax() + 1);
}
Serial.printf("r:%ld p:%ld ax:%d, ay:%d, az:%d\n", dcm.roll_sensor, dcm.pitch_sensor, imu.ax(), imu.ay(), imu.az());

Loading…
Cancel
Save