- bw = int(attrs.get('bandwidth',""))
- const = int(attrs.get('constellation',""))
- crh = int(attrs.get('code_rate_hp',""))
- crl = int(attrs.get('code_rate_lp',""))
- guard = int(attrs.get('guard_interval',""))
- transm = int(attrs.get('transmission_mode',""))
- hierarchy = int(attrs.get('hierarchy_information',""))
- inv = int(attrs.get('inversion',""))
+ bw = int(attrs.get('bandwidth',"3")) # AUTO
+ const = int(attrs.get('constellation',"1")) # AUTO
+ crh = int(attrs.get('code_rate_hp',"5")) # AUTO
+ if crh > 5: # our terrestrial.xml is buggy... 6 for AUTO
+ crh = 5
+ crl = int(attrs.get('code_rate_lp',"5")) # AUTO
+ if crl > 5: # our terrestrial.xml is buggy... 6 for AUTO
+ crl = 5
+ guard = int(attrs.get('guard_interval',"4")) # AUTO
+ transm = int(attrs.get('transmission_mode',"2")) # AUTO
+ hierarchy = int(attrs.get('hierarchy_information',"4")) # AUTO
+ inv = int(attrs.get('inversion',"2")) # AUTO