diff --git a/Drone/config/client.ini b/Drone/config/client.ini index 29c6d69..801fde4 100644 --- a/Drone/config/client.ini +++ b/Drone/config/client.ini @@ -1,5 +1,8 @@ # This is generated config_attrs with defaults # Modify to configure +config_name = Copter config +config_version = 0.0 + [SERVER] port = 25000 host = 192.168.1.101 @@ -12,8 +15,11 @@ port = 8181 [NTP] use = False host = ntp1.stratum2.ru -port = 123n +port = 123 [PRIVATE] -# avialiable options: /hostname ; /default ; /ip ; any string 63 characters lengh -#id = /hostname +# avialiable options: /hostname ; /spec_default ; /ip ; any string 63 characters lengh +id = /hostname +# Drone's individual offset +# __list__ X Y Z +offset = 0.0, 0.0, 0.0 diff --git a/Drone/config/spec/configspec_client.ini b/Drone/config/spec/configspec_client.ini index d1de342..2ee30d3 100644 --- a/Drone/config/spec/configspec_client.ini +++ b/Drone/config/spec/configspec_client.ini @@ -18,6 +18,6 @@ port = integer(default=123) [PRIVATE] # avialiable options: /hostname ; /spec_default ; /ip ; any string 63 characters lengh id = string(default=/hostname, max=63) -# Drone's individual offset +# Drone's individual offset (X, Y, Z) # __list__ X Y Z offset = float_list(default=list(0, 0, 0), min=3, max=3) diff --git a/config.py b/config.py index 289f266..de83b5c 100644 --- a/config.py +++ b/config.py @@ -193,7 +193,9 @@ if __name__ == '__main__': # print(cfg.unchanged_defaults) # print(11111) - print(cfg.full_dict) + import pprint + pprint.pprint(cfg.full_dict) + #print(cfg.full_dict) #cfg.load_from_dict(cfg.full_dict, 'Drone/config/client.ini') #print(cfg.config.initial_comment, cfg.config.final_comment)