- Determine the distance between the starting and ending waypoints using the distance function in the Mapping Toolbox.
- Find the initial bearing from the starting waypoint to the ending waypoint using the bearing function in the Mapping Toolbox.
- Determine the delta-bearing based on the range provided.
- Determine the wavelength and amplitude of the sinusoidal path by using appropriate formulas.
- Use the distance, initial bearing, and delta-bearing to compute a series of intermediate waypoints along the great circle path using the reckon function in the Mapping Toolbox.
- By using the cross-track distance function in the Mapping Toolbox. Calculate the perpendicular distance to the sinusoidal path by projecting the waypoint onto the great circle path for each intermediate waypoint.
- Use the wavelength and amplitude to compute the latitude and longitude offset for each waypoint based on its perpendicular distance from the sinusoidal path.
- Compute the latitude and longitude of each waypoint by adding the offset to the latitude and longitude of the corresponding intermediate waypoint and output the series of waypoints.
Compute Lat/Long Waypoints For A Sinusoidal Track Given: Start & End Waypoint, Delta-Bearing, and Number Cycles
4 次查看(过去 30 天)
显示 更早的评论
I want to compute a bunch of waypoints along a sinusoidal path from a starting waypoint to an ending waypoint as depicted in the diagram below.
I am given:
- a starting and ending waypoint, [lat1 lon1] & [lat2 lon2]
- the delta-bearing, in degrees
- the number of sinusoidal cycles
The distance between the starting and ending waypoints is ~25 nm if that matters.
The bearing is typically in the range 145-210 degrees, and the delta-bearing 10-25 degrees.
I'm new to the mapping toolbox so am not very familiar with all the functionality. I have an idea on how to solve it, but I think it is overly complicated, and, am betting that there is a simpler solution.
Thanks in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1217237/image.png)
0 个评论
采纳的回答
Dhruv
2023-3-23
Here are the steps you can follow to compute a series of waypoints along a sinusoidal path:
Note that this solution ignores the curvature of the Earth. You may also refer to the documentation below for guidance. Hopefully, these suggestions will help getting you started with the mapping toolbox and help with your problem statement.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!