added feature: if state == disconnected then set altitude and battery to
0