paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] a way to measure time?


From: Chris
Subject: [Paparazzi-devel] a way to measure time?
Date: Thu, 12 Nov 2009 18:51:09 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hi.
I have a question for Antoine or Pascal (and of course anyone who might know this)
Is the below method for timing between two events valid?

 SysTimeChronoStop();
 time_from_last_measurement = 1e6/(sys_time_chrono /SYS_TICS_OF_USEC(1));
maxsonar_fclimb = ( ((float)adc_generic_val1 / 100.) - ((float)adc_generic_last_val / 100.) )* time_from_last_measurement;
 SysTimeChronoStart();

I want to measure the climb rate so i need to be able to measure time
accurately enough.
Chris





reply via email to

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