paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point


From: Christophe De Wagter
Subject: Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes
Date: Tue, 26 Jun 2012 19:17:24 +0200

The only point was that the code is more readible so it was a good starting point

On Jun 26, 2012 7:10 PM, "Chris Wozny" <address@hidden> wrote:
Christophe,

That's very interesting. I meant to say more precise in terms of
having an integer versus a rational number although now that I put
more thought into it I realize that was a silly statement. If floating
points are both slower on STM32/ARM (and LPC?) and less precise, then
what is the purpose of having them as an option in float_quat and
float_cmpl?

- Chris

On Tue, Jun 26, 2012 at 12:50 PM, Christophe De Wagter
<address@hidden> wrote:
> floats have LOWER precision as you need to store the exponent. you loose 13
> bits there. in fixedpoint the exponent is written in the code so you can use
> all 32 bits to store your number:
>
> e.g. in INT you can encode global position with 1cm resolution, while in
> float it is 2.5m resolution....
>
> floats are much, MUCH slower in non-floating CPU like our ARM autopilots...
>
> -Christophe
>
> On Tue, Jun 26, 2012 at 6:05 PM, Chris Wozny <address@hidden> wrote:
>>
>> All,
>>
>> I had a general question born out of curiousity. I know floating point
>> numbers are more computationally intensive than fixed point integers
>> in terms of operations (i.e. multiplication, etc). I was just
>> wondering, what is the difference then between the int_quat
>> stabilization subsystem versus the float_quat one (or int_cmpl_quat
>> versus float_cmpl if the only difference is fixed-point versus
>> floating point)? In an ideal world where we could compute both
>> operations just as quickly, is there one which is better than the
>> other due to higher precision of floats? These aren't specific to any
>> branch, it's just more of a general question that I was wondering
>> about.
>>
>> Thanks,
>> Chris

_______________________________________________
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]