Merge remote-tracking branch 'upstream/beta' into beta
mavlink: AUTO states indication fixed
sdlog2: NavState moved to GPSP message
Reduced stack from 2048 to 1024. Top reports stack usage at 812 under flight conditions.
Reduced low priority thread stack size to 1728. Top indicates the high-water-mark is at 1380 during accelerometer calibration. Safety margin ~25%
Reduced commander main task stack size to 2088. The high-water-mark measured at 1668 after calibration and flight. 25% safety margin, but commander is fairly complex. There are surely untested code paths here, but each is relatively shallow.
Navigator: make state names generic so that they can be used by the FSM visualisation tool later
Added FSM visualisation script
Navigator: FSM bugfix and missing break
FSM visualisation script: use argparse instead of optionparse and some minor cleanup
FSM visualisation script: renamed the file
Hotfix: Fixed telemetry transmission of RC channels - we always sent one set too much - by lieron
Merge branch 'master' of github.com:PX4/Firmware
Revert "Navigator: make state names generic so that they can be used by the FSM visualisation tool later"

This reverts commit 984a815b94709916174f6a0beeb8ae8217a9aed1.
FSM visualisation script: cope with prefixed state names
Merge pull request #618 from PX4/fsm_visualisation

FSM visualisation script
Merged beta into mavlink rework branch
Merged origin/beta
lib/geo: bugs fixed, added function add_vector_to_global_position()
mc_pos_control: avoid global to local projections, work in global frame