Skip to content
Snippets Groups Projects
Commit ae1d5543 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in new modulator types yaw and pitch

parent 8f7f3144
No related branches found
No related tags found
No related merge requests found
...@@ -1101,8 +1101,10 @@ class modulator(Component): ...@@ -1101,8 +1101,10 @@ class modulator(Component):
def type(self): return self.__type def type(self): return self.__type
@type.setter @type.setter
def type(self, value): def type(self, value):
if value != "am" and value != "pm": accepted = ["am", "pm", "yaw", "pitch"]
raise pkex.BasePyKatException("Modulator type must be am (amplitude modulation) or pm (phase modulation)")
if value not in accepted:
raise pkex.BasePyKatException("Modulator type must be: " + ", ".join(accepted))
self.__type = str(value) self.__type = str(value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment