An embedded platform for positioning and obstacle detection for small unmanned aerial vehicles