Commit ae1d5543 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in new modulator types yaw and pitch

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