Skip to content

Commit

Permalink
Add support for waypoint speed and hold time configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JcZou committed Jan 31, 2024
1 parent cc04970 commit 2fbda07
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 347 deletions.
1 change: 1 addition & 0 deletions bus/Commander_In_Bus.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
{'sp_waypoint', 3, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', ''}; ...
{'cur_waypoint', 3, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', ''}; ...
{'offboard_psi_0', 1, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', sprintf('The psi value when offboard mode entered, \nwhich is used for FRAME_LOCAL_FRD')}; ...
{'set_speed', 1, 'single', -1, 'real', 'Sample', 'Fixed', [], [], sprintf('m/s'), sprintf('Set speed for cuise flight')}; ...
} ...
} ...
}';
Expand Down
346 changes: 0 additions & 346 deletions bus/Extended_States_Bus.m

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bus/enum/NAV_Cmd.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Return(20)
Land(21)
Takeoff(22)
SetSpeed(178)
end

methods (Static)
Expand Down
Binary file modified model/FMS/Base-FMS/FMS.slx
Binary file not shown.
2 changes: 1 addition & 1 deletion model/FMS/Base-FMS/fms_model_init.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
FMS_PARAM_VALUE.YAW_P = single(2.5);
FMS_PARAM_VALUE.YAW_RATE_LIM = single(pi/3);
FMS_PARAM_VALUE.ROLL_PITCH_LIM = single(pi/6);
FMS_PARAM_VALUE.L1 = single(10);
FMS_PARAM_VALUE.L1 = single(15);
FMS_PARAM_VALUE.CRUISE_SPEED = single(5);
FMS_PARAM_VALUE.CRUISE_ACC = single(5);
FMS_PARAM_VALUE.TAKEOFF_H = single(1.5);
Expand Down
Binary file modified model/FMS/FW-FMS/FMS.slx
Binary file not shown.
Binary file modified simulation/MILSIM.slx
Binary file not shown.

0 comments on commit 2fbda07

Please sign in to comment.