mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-06-03 10:39:33 +00:00
Config COPTER_ID to /hostname to make client use system hostname
Closes #7
This commit is contained in:
@@ -208,6 +208,8 @@ COPTER_ID = config.get('PRIVATE', 'id')
|
||||
if COPTER_ID == 'default':
|
||||
COPTER_ID = 'copter' + str(random.randrange(9999)).zfill(4)
|
||||
write_to_config('PRIVATE', 'id', COPTER_ID)
|
||||
elif COPTER_ID == '/hostname':
|
||||
COPTER_ID = socket.gethostname()
|
||||
|
||||
rospy.init_node('Swarm_client', anonymous=True)
|
||||
if USE_LEDS:
|
||||
|
||||
@@ -20,7 +20,7 @@ x0_common = 0
|
||||
y0_common = 0
|
||||
|
||||
[PRIVATE]
|
||||
id = copter2
|
||||
id = /hostname
|
||||
use_leds = True
|
||||
x0 = 0
|
||||
y0 = 0
|
||||
Reference in New Issue
Block a user