This is a tool (probably) in on an ultralight airplane. Initially I guessed that it is a tilting meter (to level between right and left), but seems it is not as it just a vertical tube filled up with something like liquid.
So, what is that and how does it work?