TradHeli: init roll/pitch input filter

This commit is contained in:
Randy Mackay 2014-02-15 17:37:35 +09:00 committed by Andrew Tridgell
parent b259510095
commit 9444ba7ea8

View File

@ -7,6 +7,9 @@
// stabilize_init - initialise stabilize controller
static bool heli_stabilize_init(bool ignore_checks)
{
// initialise filters on roll/pitch input
reset_roll_pitch_in_filters(g.rc_1.control_in, g.rc_2.control_in);
// set target altitude to zero for reporting
// To-Do: make pos controller aware when it's active/inactive so it can always report the altitude error?
pos_control.set_alt_target(0);