solo_config/solo/configurations/hetept1/v0009/hetept_config_fm1_patch1.py
2021-07-27 14:25:00 +02:00

35 lines
952 B
Python
Executable file

#! /usr/bin/python3
from solo.patch import patch
class hetept91(patch):
def assemble(self, **aa):
if self.config is None:
raise ValueError("Please provide a config=")
self.scratch(subversion=1)
C = self.config
self.new_conf = C.CONFIG(
unit=C.unit,
model=C.model,
temperature=C.nominal.temperature,
env=C.nominal.env,
patch=1 )
self.diff = self.new_conf.diff(C.nominal)
def send(self, msg):
self.send_stop_l3(msg)
self.send_scratch(msg)
self.send_l3(msg, self.diff.l3)
self.send_start_l3(msg)
self.send_ping(msg)
import solo.hetept.config
patch1 = hetept91(name="fm1", config=solo.hetept.config.fm1(config_page=0x10000))
patch2 = hetept91(name="fm2", config=solo.hetept.config.fm2(config_page=0x10000))
if __name__=="__main__":
patch1.main()
patch2.main()