Make sure you used rtl_pthread_attr_setfp when you created the thread.
On Mon, Apr 08, 2002 at 12:41:09PM +0000, Michael B�llingtoft Nielsen wrote:
> Hi,
>
> I am having problems in sending floats to my realtime program via the
> RTfifo. The other way around seems to work fine.
> When i in the fifo-handler tries to compare the float i received from the
> fifo with the float-constant that i send to the fifo (from user-space) i can
> see that they are no equal.
>
> little code example:
> (in the fifo-handler)
> float rec;
> rtf_get(FIFO_NR,&rec,4)
> if(rec!=10.81) rtl_printf("not equal");
>
> only when the float i am sending is like 10.0, 342.0, 934.0 they are equal,
> else not.
>
> Is there something that i am missing to set (like you have to tell the
> rt-thread when it is supposed to use the floating point unit) or is it not
> possible to receive floats in rt-space via RTFIFOs ??
>
> thanks in advance
> Michael
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
--
---------------------------------------------------------
Victor Yodaiken
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com www.rtlinux.com
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/