mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
Add type hints, small cleanups (#21080)
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl * unpack more efficiently * minor improvements * agnos.py match spec better * manual_ctrl test missing queue arg * fix incorrect type annotation * queues are generic * varname reuse resulting in incorrect type inference * bytes().hex() rather than bytes.hex(bytes()) * a bit of type hinting stuff old-commit-hash: 77321dbac4ebfedf9cb5e9085e16055346299749
This commit is contained in:
@@ -63,7 +63,7 @@ if __name__ == "__main__":
|
||||
msg = messaging.recv_sock(s)
|
||||
#msg = messaging.recv_one_or_none(s)
|
||||
if msg is not None:
|
||||
x[i] = np.append(x[i], getattr(msg, 'logMonoTime') / float(1e9))
|
||||
x[i] = np.append(x[i], getattr(msg, 'logMonoTime') / 1e9)
|
||||
x[i] = np.delete(x[i], 0)
|
||||
y[i] = np.append(y[i], recursive_getattr(msg, subs_name[i]))
|
||||
y[i] = np.delete(y[i], 0)
|
||||
|
||||
Reference in New Issue
Block a user