Add offset to center sine wave
Closed this issue · 2 comments
Have the sine wave oscillate about zero by adding offset
Problem is that the origin is technically where the target should be moving at max velocity. So in order to fix this one would have the target start at one of the amplitude positions (where it would be at 0 m/s, changing direction). So I added code to have it move the target to that position at the beginning of the sim. Now the issue is that the drone will remain in the origin, but if the target is far away from the drone (5m or so) it'll be out of the FOV of the drone. if I move the drone position along with the target, it'll mess up the Ardupilot initialization. I would have to have the user change the spawn locations of the target and drone so it'll spawn at those amplitude locations rather than having to write in the plugin to move their location from spawn to amplitude. So closing this issue out as the feature was no longer wanted