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.
Reduced stack size to 1200. Max stack space used was 956.
Stack size reduced to 1816. Max stack reported by top was 1448 under HIL.
Stack size reduced to 1648. Max stack usage reported top at 1316.
Stack size reduced to 2408. Max stack usage reported by top in EASY mode at 1924.
Reduced stack size to 2568. Max stack usage reported as 2052 with MARG + GPS with 3d lock - no px4flow, but should be more than enough buffer to accomodate its addition.
Stack size reduced to 1280. Max stack size reported as 1020 with UBX GPS with 3d lock. MTK not tested.
Merge remote-tracking branch 'origin/master' into memory_tests
Merge pull request #620 from pigeonhunter/stack_sizes

Stack sizes