Skip to content
Snippets Groups Projects
Commit 045001b3 authored by Torben Petersen's avatar Torben Petersen
Browse files

Changed ifconfig channel from 3 to 4

parent fba21b2d
No related branches found
No related tags found
No related merge requests found
...@@ -259,7 +259,8 @@ class PRREvalClient(Thread): ...@@ -259,7 +259,8 @@ class PRREvalClient(Thread):
# 5 packets, 200ms -> 1 second # 5 packets, 200ms -> 1 second
sleep( 2 ) sleep( 2 )
#self.send({'dst': {'id': sender}, 'type': 'serial_tx', 'line': 'ifconfig 3 set state idle\n'}) #self.send({'dst': {'id': sender}, 'type': 'serial_tx', 'line': 'ifconfig 3 set state idle\n'})
self.send(sender, 'ifconfig 3 set state idle') #self.send(sender, 'ifconfig 3 set state idle')
self.send(sender, 'ifconfig 4 set state idle')
# Delay after all sends # Delay after all sends
sleep( 5.0 ) sleep( 5.0 )
...@@ -284,10 +285,12 @@ class PRREvalClient(Thread): ...@@ -284,10 +285,12 @@ class PRREvalClient(Thread):
def set_channel(self, channel): def set_channel(self, channel):
#self.send_all("ifconfig 3 set state idle\n") #self.send_all("ifconfig 3 set state idle\n")
self.send_all("ifconfig 3 set channel {}".format( channel )) #self.send_all("ifconfig 3 set channel {}".format( channel ))
self.send_all("ifconfig 4 set channel {}".format( channel ))
def set_txpower(self, power): def set_txpower(self, power):
self.send_all("ifconfig 3 set power {}".format( power )) #self.send_all("ifconfig 3 set power {}".format( power ))
self.send_all("ifconfig 4 set power {}".format( power ))
def send_all(self, line): def send_all(self, line):
for sender in self.my_nodes: for sender in self.my_nodes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment