mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
Flight: Made the actuator module perform a get after set to allow configuration module to override servo position.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1329 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
d11c570785
commit
8bcff21184
@ -151,14 +151,16 @@ static void actuatorTask(void* parameters)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update output object
|
||||||
|
ActuatorCommandSet(&cmd);
|
||||||
|
// Update in case read only (eg. during servo configuration)
|
||||||
|
ActuatorCommandGet(&cmd);
|
||||||
|
|
||||||
// Update servo outputs
|
// Update servo outputs
|
||||||
for (int n = 0; n < ACTUATORCOMMAND_CHANNEL_NUMELEM; ++n)
|
for (int n = 0; n < ACTUATORCOMMAND_CHANNEL_NUMELEM; ++n)
|
||||||
{
|
{
|
||||||
PIOS_Servo_Set( n, cmd.Channel[n] );
|
PIOS_Servo_Set( n, cmd.Channel[n] );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update output object
|
|
||||||
ActuatorCommandSet(&cmd);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user