Sub: Add default deadband for lateral/forward

This commit is contained in:
Rustom Jehangir 2016-04-26 16:38:54 -07:00 committed by Andrew Tridgell
parent 3b679808f3
commit bf00aacc42
1 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,8 @@ void Sub::default_dead_zones()
channel_pitch->set_default_dead_zone(30);
channel_throttle->set_default_dead_zone(30);
channel_yaw->set_default_dead_zone(40);
g.rc_6.set_default_dead_zone(0);
channel_forward->set_default_dead_zone(30);
channel_lateral->set_default_dead_zone(30);
}
void Sub::init_rc_in()
@ -48,10 +49,10 @@ void Sub::init_rc_in()
>>>>>>> Changed to ArduCopter as the base code.
//set auxiliary servo ranges
g.rc_5.set_range(0,1000);
g.rc_6.set_range(0,1000);
g.rc_7.set_range(0,1000);
g.rc_8.set_range(0,1000);
// g.rc_5.set_range(0,1000);
// g.rc_6.set_range(0,1000);
// g.rc_7.set_range(0,1000);
// g.rc_8.set_range(0,1000);
// set default dead zones
default_dead_zones();