Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Stapelzeiger
Stapelzeiger / maps.ipynb
Last active December 24, 2015 10:58
Leaflet.js maps in python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Stapelzeiger
Stapelzeiger / can-budget.py
Last active August 29, 2015 14:11
CAN budget calculations
cid = 28
# cid = 11
framebits = { # including average number of stuff bits
11: [47, 55, 63, 71, 79, 87, 95, 103, 111],
28: [65, 73, 81, 89, 97, 105, 113, 121, 129]
}
service = [] # name, update rate, bytes, nb. nodes
service.append(("dyn_ctrl", 400, 8, 2+3*2)) # float32 pos, float16 vel, float16 torque, 2 wheels + 3 per arm