puku0x / cvdrone

CV Drone (= OpenCV + AR.Drone)
https://github.com/puku0x/cvdrone/wiki/How-to-build
Other
202 stars 94 forks source link

Making drone fly a set path with pressing of one key #66

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

i want the drone to fly a certain distance forward, rotate and fly a certain distance forward from there, using time as a factor of how long for. Can you please help or guide me to the implementation because I can only get the drone to do so using the keys, but i have to hold them down rather than press it once.

Thanks.

TOTON95 commented 6 years ago

Hi there, I think you are looking for a latch mechanism like to keep its state until the time is over, try to achieve this first in an isolated project using the clock from your PC (security reasons), then take a closer look at the commands linked at the keys in your keyboard and copy the respective command into the mechanism you just created. Regards.