mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
Plane: always output flaperons and dspoilers
This commit is contained in:
parent
fc49b55b85
commit
024d2b7435
@ -169,10 +169,6 @@ void Plane::channel_function_mixer(SRV_Channel::Aux_servo_function_t func1_in, S
|
|||||||
*/
|
*/
|
||||||
void Plane::flaperon_update(int8_t flap_percent)
|
void Plane::flaperon_update(int8_t flap_percent)
|
||||||
{
|
{
|
||||||
if (!SRV_Channels::function_assigned(SRV_Channel::k_flaperon_left) &&
|
|
||||||
!SRV_Channels::function_assigned(SRV_Channel::k_flaperon_right)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
flaperons are implemented as a mixer between aileron and a
|
flaperons are implemented as a mixer between aileron and a
|
||||||
percentage of flaps. Flap input can come from a manual channel
|
percentage of flaps. Flap input can come from a manual channel
|
||||||
@ -194,11 +190,6 @@ void Plane::flaperon_update(int8_t flap_percent)
|
|||||||
*/
|
*/
|
||||||
void Plane::dspoiler_update(void)
|
void Plane::dspoiler_update(void)
|
||||||
{
|
{
|
||||||
// just check we have a left dspoiler, and if so calculate all outputs
|
|
||||||
if (!SRV_Channels::function_assigned(SRV_Channel::k_dspoilerLeft1)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const int8_t bitmask = g2.crow_flap_options.get();
|
const int8_t bitmask = g2.crow_flap_options.get();
|
||||||
const bool flying_wing = (bitmask & CrowFlapOptions::FLYINGWING) != 0;
|
const bool flying_wing = (bitmask & CrowFlapOptions::FLYINGWING) != 0;
|
||||||
const bool full_span_aileron = (bitmask & CrowFlapOptions::FULLSPAN) != 0;
|
const bool full_span_aileron = (bitmask & CrowFlapOptions::FULLSPAN) != 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user