Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/examples/channel_overrides.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ In summary, after cloning the repository:
Set Ch3 override to 300 (dictionary syntax)
Channel overrides: {'3': 300}
Set Ch1-Ch8 overrides to 110-810 respectively
Channel overrides: {'1': 110, '3': 310, '2': 210, '5': 510, '4': 4100, '7': 710, '6': 610, '8': 810}
Channel overrides: {'1': 110, '2': 210, '3': 310, '4': 410, '5': 510, '6': 610, '7': 710, '8': 810}
Cancel Ch2 override (indexing syntax)
Channel overrides: {'1': 110, '3': 310, '5': 510, '4': 4100, '7': 710, '6': 610, '8': 810}
Channel overrides: {'1': 110, '3': 310, '4': 410, '5': 510, '6': 610, '7': 710, '8': 810}
Clear Ch3 override (del syntax)
Channel overrides: {'1': 110, '5': 510, '4': 4100, '7': 710, '6': 610, '8': 810}
Channel overrides: {'1': 110, '4': 410, '5': 510, '6': 610, '7': 710, '8': 810}
Clear Ch5, Ch6 override and set channel 3 to 500 (dictionary syntax)
Channel overrides: {'3': 500}
Clear all overrides
Expand Down
2 changes: 1 addition & 1 deletion examples/channel_overrides/channel_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
print(" Channel overrides: %s" % vehicle.channels.overrides)

print("Set Ch1-Ch8 overrides to 110-810 respectively")
vehicle.channels.overrides = {'1': 110, '2': 210,'3': 310,'4':4100, '5':510,'6':610,'7':710,'8':810}
vehicle.channels.overrides = {'1': 110, '2': 210,'3': 310,'4': 410, '5':510,'6':610,'7':710,'8':810}
print(" Channel overrides: %s" % vehicle.channels.overrides)


Expand Down