mirror of https://github.com/ArduPilot/ardupilot
removed the on-the-ground limitation for setting simple mode bearing.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1841 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
5d4b8d9913
commit
e8c40234a6
|
@ -462,10 +462,10 @@ void
|
||||||
init_simple_bearing()
|
init_simple_bearing()
|
||||||
{
|
{
|
||||||
if(simple_bearing_is_set == false){
|
if(simple_bearing_is_set == false){
|
||||||
if(g.rc_3.control_in == 0){
|
//if(g.rc_3.control_in == 0){
|
||||||
// we are on the ground
|
// we are on the ground
|
||||||
initial_simple_bearing = dcm.yaw_sensor;
|
initial_simple_bearing = dcm.yaw_sensor;
|
||||||
simple_bearing_is_set = true;
|
simple_bearing_is_set = true;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue