07-17
Line 40 test fail issue with the calculation of waypoints.
Note that the PM cruising algorithm can only be applied to fixed wings. The takeoff and landing algorithm can only be applied to quad.
On CrusingStateManagerTest.cpp line 113 both tests did not pass. Both the results are different from expected. Note that this test checks the desired track straight. So the path that is calculated should be for straight lines.
PM_CruisingStateManager.cpp line 131 the waypoint_type variable was commented out and on line 137 the waypoint_type is hard coded to be PATH_FOLLOW (data->waypoint_type = PATH_FOLLOW; ).
PM_CruisingStateManager follow_last_line_segment
(line 389), follow_line_segment
(line 355), next_waypoints
(line 265) is where the math takes place. TODO figure out what they do and see why the math is not correct.
0 Comments