Raspberry pi based flight controller