PX4/Firmware — pull request #1146 by DonLakeFlyer (2014-07-08 03:07:57+00:00)
Title: Fix mainStateTransitionTest

This fixes Issue #1141. There are still some problems though with armingStateTransitionTest failing. This is because of the newly added prearm checks. Previously you could simulate the machine state and call arming_state_transition to test it. The reason is that the routine did not reach out for any additional values. All the information it needed to determine correctness was passed into it. Now with the prearm check added in it reaches out to additional sensors so it no longer determines correctness from only passed in state. This means that you can't write a unit test for it. One option would be to add a flag to the function will tells it to not test additional sensors which can then be used for testing. Other possibilities?