|
|
|
@ -169,7 +169,7 @@ void ModeGuided::wp_control_run()
@@ -169,7 +169,7 @@ void ModeGuided::wp_control_run()
|
|
|
|
|
{ |
|
|
|
|
// process pilot's yaw input
|
|
|
|
|
float target_yaw_rate = 0; |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw()) { |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw() && copter.zr_serial_api.data_trans_init) { //copter.zr_serial_api.data_trans_init 仿线模式启动,禁用遥控控制
|
|
|
|
|
// get pilot's desired yaw rate
|
|
|
|
|
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in()); |
|
|
|
|
if (!is_zero(target_yaw_rate)) { |
|
|
|
@ -648,7 +648,7 @@ void ModeGuided::pos_control_run()
@@ -648,7 +648,7 @@ void ModeGuided::pos_control_run()
|
|
|
|
|
// process pilot's yaw input
|
|
|
|
|
float target_yaw_rate = 0; |
|
|
|
|
|
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw()) { |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw() && copter.zr_serial_api.data_trans_init) { //copter.zr_serial_api.data_trans_init 仿线模式启动,禁用遥控控制
|
|
|
|
|
// get pilot's desired yaw rate
|
|
|
|
|
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in()); |
|
|
|
|
if (!is_zero(target_yaw_rate)) { |
|
|
|
@ -707,7 +707,7 @@ void ModeGuided::accel_control_run()
@@ -707,7 +707,7 @@ void ModeGuided::accel_control_run()
|
|
|
|
|
{ |
|
|
|
|
// process pilot's yaw input
|
|
|
|
|
float target_yaw_rate = 0; |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw()) { |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw() && copter.zr_serial_api.data_trans_init) { //copter.zr_serial_api.data_trans_init 仿线模式启动,禁用遥控控制
|
|
|
|
|
// get pilot's desired yaw rate
|
|
|
|
|
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in()); |
|
|
|
|
if (!is_zero(target_yaw_rate)) { |
|
|
|
@ -771,7 +771,7 @@ void ModeGuided::velaccel_control_run()
@@ -771,7 +771,7 @@ void ModeGuided::velaccel_control_run()
|
|
|
|
|
{ |
|
|
|
|
// process pilot's yaw input
|
|
|
|
|
float target_yaw_rate = 0; |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw()) { |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw() && copter.zr_serial_api.data_trans_init) { //copter.zr_serial_api.data_trans_init 仿线模式启动,禁用遥控控制
|
|
|
|
|
// get pilot's desired yaw rate
|
|
|
|
|
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in()); |
|
|
|
|
if (!is_zero(target_yaw_rate)) { |
|
|
|
@ -847,7 +847,7 @@ void ModeGuided::posvelaccel_control_run()
@@ -847,7 +847,7 @@ void ModeGuided::posvelaccel_control_run()
|
|
|
|
|
// process pilot's yaw input
|
|
|
|
|
float target_yaw_rate = 0; |
|
|
|
|
|
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw()) { |
|
|
|
|
if (!copter.failsafe.radio && use_pilot_yaw() && copter.zr_serial_api.data_trans_init) { //copter.zr_serial_api.data_trans_init 仿线模式启动,禁用遥控控制
|
|
|
|
|
// get pilot's desired yaw rate
|
|
|
|
|
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in()); |
|
|
|
|
if (!is_zero(target_yaw_rate)) { |
|
|
|
|