mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
OP-1232 set lowpriority field on all other UAVObjEvent usage intances
This commit is contained in:
parent
26f3422612
commit
b879bd8fb4
@ -128,6 +128,7 @@ int32_t CameraStabInitialize(void)
|
||||
.obj = AttitudeStateHandle(),
|
||||
.instId = 0,
|
||||
.event = 0,
|
||||
.lowPriority = false,
|
||||
};
|
||||
EventPeriodicCallbackCreate(&ev, attitudeUpdated, SAMPLE_PERIOD_MS / portTICK_RATE_MS);
|
||||
|
||||
|
@ -73,7 +73,12 @@ int32_t LoggingStart(void)
|
||||
FlightStatusConnectCallback(FlightStatusUpdatedCb);
|
||||
SettingsUpdatedCb(DebugLogSettingsHandle());
|
||||
|
||||
UAVObjEvent ev = { .obj = DebugLogSettingsHandle(), .instId = 0, .event = EV_UPDATED_PERIODIC };
|
||||
UAVObjEvent ev = {
|
||||
.obj = DebugLogSettingsHandle(),
|
||||
.instId = 0,
|
||||
.event = EV_UPDATED_PERIODIC,
|
||||
.lowPriority = true,
|
||||
};
|
||||
EventPeriodicCallbackCreate(&ev, StatusUpdatedCb, 1000);
|
||||
// invoke a periodic dispatcher callback - the event struct is a dummy, it could be filled with anything!
|
||||
StatusUpdatedCb(&ev);
|
||||
|
@ -111,6 +111,7 @@ int32_t TxPIDInitialize(void)
|
||||
.obj = AccessoryDesiredHandle(),
|
||||
.instId = 0,
|
||||
.event = 0,
|
||||
.lowPriority = false,
|
||||
};
|
||||
EventPeriodicCallbackCreate(&ev, updatePIDs, SAMPLE_PERIOD_MS / portTICK_RATE_MS);
|
||||
|
||||
|
@ -1719,6 +1719,7 @@ static int32_t sendEvent(struct UAVOBase *obj, uint16_t instId, UAVObjEventType
|
||||
.obj = (UAVObjHandle)obj,
|
||||
.event = triggered_event,
|
||||
.instId = instId,
|
||||
.lowPriority = false,
|
||||
};
|
||||
|
||||
// Go through each object and push the event message in the queue (if event is activated for the queue)
|
||||
|
Loading…
x
Reference in New Issue
Block a user