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/