mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-18 01:18:52 +08:00
Axis error work again now, fixed top level .gitignore
This commit is contained in:
@@ -20,7 +20,7 @@ app.config.update(
|
||||
SESSION_COOKIE_SAMESITE='None'
|
||||
)
|
||||
CORS(app, support_credentials=True)
|
||||
socketio = SocketIO(app, cors_allowed_origins="*")
|
||||
socketio = SocketIO(app, cors_allowed_origins="*", async_mode = "threading")
|
||||
|
||||
def get_all_odrives():
|
||||
globals()['odrives'] = []
|
||||
@@ -98,6 +98,8 @@ def set_property(message):
|
||||
globals()['inUse'] = True
|
||||
print("From setProperty event handler: " + str(message))
|
||||
postVal(globals()['odrives'], message["path"].split('.'), message["val"], message["type"])
|
||||
val = getVal(globals()['odrives'], message["path"].split('.'))
|
||||
emit('ODriveProperty', json.dumps({"path": message["path"], "val": val}))
|
||||
globals()['inUse'] = False
|
||||
|
||||
@socketio.on('callFunction')
|
||||
|
||||
Reference in New Issue
Block a user