paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Non-blocking module code


From: limaiem imed
Subject: Re: [Paparazzi-devel] Non-blocking module code
Date: Wed, 4 Jul 2012 01:09:42 +0200

thanks for this contribution !
in practical way you use the procedure output I mean xbee_reset_ticks to push an analog output to high during a certain period of time to reset the xbee modul ? to do this we need to link an analog output to the xbee reset pin.
thanks 
 

Imed LIMAIEM
address@hidden


On Tue, Jul 3, 2012 at 12:46 AM, Gareth Roberts <address@hidden> wrote:
Hi all,

I've written a module to reset an xbee via AT commands every 5 minutes (yes, I'm back to the 868's...).

https://github.com/blutack/paparazzi/blob/v3.9/sw/airborne/modules/xbee_resetter/xbee_resetter.c

It's working well, but the problem I'm using sys_time_usleep to block for a second to allow all in-progress transmissions to clear out, and then another second long block to wait out the guard time.

Two questions:
- Am I correct in assuming there are no threads & the module code is blocking the main event loop (thereby making landings potentially interesting)?
- If yes, is there a relatively safe way to stop the AP code transmitting on the downlink, so I can allow the event loop to continue & re-implement the module using counters?

Many thanks,
Gareth

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]