-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds schedule table classes and schedule table field to LDF * FIxes missing unassign frame id command to JSON schema * Adds schedule table documentation * Schedule entry delay type is now float * Event triggered frames have reference to Schedule * Updates changelog * Bumps software version * Updates disclaimers, examples and features in README * Fixes missing links in index.md
- Loading branch information
Showing
13 changed files
with
523 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: default | ||
title: LDF Parser - Schedules | ||
--- | ||
|
||
## Accessing schedules | ||
|
||
### Retrieving schedule information | ||
|
||
After parsing the LDF into objects the schedule tables defined in the LDF will | ||
be accessible. | ||
|
||
```python | ||
ldf = parse_ldf('network.ldf') | ||
|
||
configuration_schedule = ldf.get_schedule('Configuration_Schedule') | ||
print(configuration_schedule.name) | ||
>>> 'Configuration_Schedule' | ||
for entry in configuration_schedule.schedule: | ||
print(f"{type(entry).__name__} - {entry.delay * 1000} ms") | ||
>>> 'AssignNadEntry - 15 ms' | ||
>>> 'AssignFrameIdRangeEntry - 15 ms' | ||
>>> 'AssignFrameIdEntry - 15 ms' | ||
>>> 'AssignFrameIdEntry - 15 ms' | ||
>>> 'AssignFrameIdEntry - 15 ms' | ||
``` | ||
|
||
The objects referenced in the table entries are also linked. | ||
|
||
```python | ||
print(configuration_schedule.schedule[0].node.name) | ||
>>> 'LSM' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.