diff --git a/quad/src/quad_app/control_algorithm.c b/quad/src/quad_app/control_algorithm.c index 3a1ab4675a94b2703094e35e9be227508269a5ae..6ac42e905a8ccc74b18503568cc90ff352f68250 100644 --- a/quad/src/quad_app/control_algorithm.c +++ b/quad/src/quad_app/control_algorithm.c @@ -358,7 +358,7 @@ int control_algorithm_init(parameter_t * ps) // don't use the PID corrections if the throttle is less than about 10% of its range // unless we are in autonomous if((user_input_struct->rc_commands[THROTTLE] > 118000) || - user_defined_struct->flight_mode = AUTO_FLIGHT_MODE) + user_defined_struct->flight_mode == AUTO_FLIGHT_MODE) { //THROTTLE