setlistener("/fdm/jsbsim/canopy/jettison-pos-norm", func(i){
	if(i.getValue()==1){
		setprop("/fdm/jsbsim/canopy/jettison-trigger",1);
		setprop("/fdm/jsbsim/canopy/jettisoned", 1);
		settimer(reset_canopy, 2);
	}
});

var reset_canopy = func(){
	setprop("/fdm/jsbsim/canopy/jettison-cmd",0);
	setprop("/fdm/jsbsim/canopy/jettison-pos-norm",0);
	setprop("/fdm/jsbsim/canopy/jettison-trigger", 0);
}
