paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] Scaling factor: uint16_t into float


From: Brendan Chen
Subject: [Paparazzi-devel] Scaling factor: uint16_t into float
Date: Thu, 16 Oct 2008 21:37:46 +1000

Hi all,

Anyone know where and how to convert the downlinked ADC_GENERIC value into a 
more meaningful value?

I could be wrong but from what i understand, the ADC_GENERIC function returns a 
uint16_t value... I would like to scale that down by a factor of 208.3 
(adc_generic_val1 / 208.3) and give a return in 2 decimal float number.

How and where would I do that?


Thanks
Brendan




reply via email to

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