Closed tylerlum closed 2 years ago
Also, ensure we handle the 0 global wind speed situation correctly in general.
Path.py
Also, ensure we handle the 0 global wind speed situation correctly in general.
What needs to be checked?
When wind speed is 0, the wind direction is ambiguous. 0 length vector has no direction. Therefore, the planning that uses wind direction might be kinda dumb (may think it's going upwind or downwind, when it does not).
Could use a threshold instead of just 0; see #271
Brainstorming:
Current plan: make a low wind threshold below which the local path doesn't get updated. Also, this threshold ideally would depend on the wind direction compared to the direction we're trying to sail in. The threshold should be lower for downwind sailing, because we will still be floating in the right direction. Currently thinking the threshold should be 3knots ish, but this should be tuned after on water testing.
Add filtering logic in ros_interface.py so that it can be used for both pathfinding and controls
Expected speed of raye in m/s as a function of wind angle for different wind speeds .
When global wind speed is 0, then the direction is measningless. However, we look at the direction wrt the boat's path direction to decide if we are upwind/downwind. THEREFORE, we should have a check that says no upwind/downwind if global wind speed is 0.