FixedTimeslotTask FreeRTOS improvements #117
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#117
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "KSat/fsfw:mueller_FixedTimeslotTaskImprovements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added deadline missed check and updated doc.
Related to #118
@ -85,1 +88,3 @@
std::list<FixedSequenceSlot*>::iterator it = pst.current;
// A local iterator for the Polling Sequence Table is created to find the
// start time for the first entry.
SlotListIter slotListIter = pst.current;
I can't find the Definition of SlotListIter at the moment. Is this a new typedef in this class or devicehandler/FixedSlotSequence.cpp?
Oh, that is kind of annoying.. That is a new typedef in FixedSlotSequence.cpp/h which uses a multiset..
I pushed a new version which uses the list, but maybe it would be a better idea to merge the DHB changes and the FixedSlotSequence changes first..
@ -19,3 +15,1 @@
* @param (*setDeadlineMissedFunc)() The function pointer to the deadline missed function that shall be assigned.
*
* @param getPst The object id of the completely initialized polling sequence.
* Keep in Mind that you need to call before this vTaskStartScheduler()!
Keep in Mind that you need to call
before thisvTaskStartScheduler() before this!@ -116,0 +121,4 @@
this->deadlineMissedFunc();
}
// Continue immediately, no need to wait.
break;
This does break the for loop. Are you sure that this is what you want?
Youre right, continue is needed I think. This still needs to be tested anyway by setting an intentional delay in DHB.
FixedTimeslotTask FreeRTOS improvementsto WIP:FixedTimeslotTask FreeRTOS improvementsWIP:FixedTimeslotTask FreeRTOS improvementsto WIP: FixedTimeslotTask FreeRTOS improvementsIt propably would be a good idea to merge this after the DHB changes and FixedSequenceSlot.cpp/.h .
Ok I think, that this is not overflow safe. Compare that with the implementation in vTaskDelay of FreeRtos.
Hmm, how to best do this then? the check has to be performed twice? The FreeRTOs function can't return whether it has delayed or not..
WIP: FixedTimeslotTask FreeRTOS improvementsto FixedTimeslotTask FreeRTOS improvementsDeadline check has been implemented and pull request was adapted to the new underlying data structure multiset.