mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-06-05 03:29:33 +00:00
Request for battery on start
This commit is contained in:
@@ -116,8 +116,10 @@ model.setColumnCount(6)
|
||||
model.setRowCount(0)
|
||||
|
||||
|
||||
def client_connected(self):
|
||||
model.appendRow((QStandardItem(self.copter_id),)) # TODO: get responses for another columns
|
||||
def client_connected(self: Client):
|
||||
batt = self.get_response("batt_voltage")
|
||||
model.appendRow((QStandardItem(self.copter_id), QStandardItem(batt))) # TODO: get responses for another columns
|
||||
|
||||
|
||||
|
||||
Client.on_connect = client_connected
|
||||
|
||||
Reference in New Issue
Block a user