Hi Bill, Adrius,
Making LOGO do what you outlined should be doable. However, not all functions are implemented in LOGO.
Maybe we can work around this, or some custom code could be written.
- Do you mean RC control by "signal is lost"? This brings MP in failsafe mode.
- check if plane is not inverted: LOGO cannot detect orientation.
- timing x seconds is not implemented, but could we use an estimated airspeed for the balloon at >8km altitude, say 20 m/s?
The basic program could look like this:
// RTL Flight Plan
REPEAT_FOREVER
IF_GT(ALT,8000)
PARAM_SET(0)
REPEAT(20)
IF_LT(AIR_SPEED_Z,0)
PARAM_ADD(1)
USE_CURRENT_ANGLE
FD(20) //expect to move 20 m/s, this takes ~1 second
END
END
IF_GE_PARAM(20)
FLAG_TOGGLE(F_TRIGGER) //release
USE ANGLE TO HOME
FD(200) //~10 sec
FLAG_TOGGLE(F_TRIGGER)
HOME
// Once we arrive home, aim the turtle in the
// direction that the plane is already moving.
USE_CURRENT_ANGLE
REPEAT_FOREVER
// Fly a circle (36-point regular polygon)
REPEAT(36)
RT(10)
FD(8)
END
END
END
END
END
END
Please not that like this, the failsafe will only function when triggered above 8km.
Best wishes,
Kees
Op dinsdag 27 september 2016 00:46:24 UTC+2 schreef William Premerlani: