[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point
From: |
Chris Wozny |
Subject: |
Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes |
Date: |
Tue, 26 Jun 2012 13:10:39 -0400 |
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] Difference Between Fixed-point and Floating-point Schemes, Chris Wozny, 2012/06/26
- Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes, Christophe De Wagter, 2012/06/26
- Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes,
Chris Wozny <=
- Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes, Christophe De Wagter, 2012/06/26
- Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes, Felix Ruess, 2012/06/26
- Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes, Christophe De Wagter, 2012/06/26
- Re: [Paparazzi-devel] Difference Between Fixed-point and Floating-point Schemes, Felix Ruess, 2012/06/26
- [Paparazzi-devel] Increasing PPM rate, Gareth Roberts, 2012/06/26
- Re: [Paparazzi-devel] Increasing PPM rate, Chris Gough, 2012/06/26
- Re: [Paparazzi-devel] Increasing PPM rate, Stephen Dwyer, 2012/06/26
- Re: [Paparazzi-devel] Increasing PPM rate, Christophe De Wagter, 2012/06/27
- Re: [Paparazzi-devel] Increasing PPM rate, Gareth Roberts, 2012/06/27
- Re: [Paparazzi-devel] Increasing PPM rate, Stephen Dwyer, 2012/06/27