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:
parent
4367bd62bf
commit
cc8e56f170
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user