Jump to content
Stray Fawn Community
  • 0

Tilt Sensor initialization issues.


joemama1512

Post

Ive noticed that the tilt sensor has both left and right values set to 0 when the drone is first spawned, either normally or factory created.   What this does is immediately trigger certain logic.   For example you want to Do Something when the mission target is reached by using an XOR on tilt right/tilt left, so when both values are 0 it indicates that you have arrived.   Due to how initialization works, this will trigger right away and you have to add extra logic to "delay" the check to bypass this initial condition.

Maybe there is a way to set the tilt sensors to start working and set real values first, then process the rest of the logic blocks during initialization.

Link to comment
Share on other sites

0 replies to this post

Recommended Posts

There are no comments yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...