1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP699: changed update rate to use constant

This commit is contained in:
Corvus Corax 2012-11-05 15:59:13 +01:00
parent 4367bd62bf
commit cc8e56f170

View File

@ -49,6 +49,7 @@
#define MAX_QUEUE_SIZE 2
#define F_PI 3.141526535897932f
#define RAD2DEG (180.0f/F_PI)
#define PATH_PLANNER_UPDATE_RATE_MS 20
// Private types
@ -142,7 +143,7 @@ static void pathPlannerTask(void *parameters)
while (1)
{
vTaskDelay(20);
vTaskDelay(PATH_PLANNER_UPDATE_RATE_MS);
FlightStatusGet(&flightStatus);
if (flightStatus.FlightMode != FLIGHTSTATUS_FLIGHTMODE_PATHPLANNER) {