Running Different Loops according to TIMED IR input


hello all

i working on project school involves programing drone land on given position placed professor. remote provided includes 2 ir sensors can used.  because of such, use these 2 sensors 'counters', lack of better term (i'm brand new this..my apologizes).  program of timing each distance accordingly before hand, , hoping use these sensors call correct program. example:

the professor sets landing pad 10 feet forward , 3 feet left. given situation, idea then:

start program timer using milli()
cover 1 ir sensor 10 seconds (correlates 10 feet forward) , release
cover other ir sensor 3 seconds (correlates 3 feet horizontal motion) , release

by doing this, want able start flight program , use according pitch yaw roll numbers set according duration of time each sensor covered.

does seem feasible concept? if so, love feedback how run style of timer before running through if/else if loops.

thank you!!!



Arduino Forum > Using Arduino > Sensors > Running Different Loops according to TIMED IR input


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???