v0.2 integrating the new cots control procedure into the existing framework

This commit is contained in:
Remi Hardy
2020-09-03 11:54:18 +02:00
parent 430496d59f
commit cb650a1a6e
4 changed files with 96 additions and 25 deletions
+11
View File
@@ -57,6 +57,17 @@ class CotsUe:
mySSH.close()
return status
#simply check if the device id exists in the dictionary
#returns true if it exists, false otherwise
def Check_Exists(self,target_id):
#load cots commands dictionary
with open(self.__cots_cde_dict_file,'r') as file:
cots_ue_ctl = yaml.load(file,Loader=yaml.FullLoader)
#check if ue id is in the dictionary
if target_id in cots_ue_ctl:
return True
else:
return False
def Set_Airplane(self, target_id, target_state_str):
#load cots commands dictionary