Hello everyone,
I am relatively new to RTLinux, and I was wondering about how to use the
rt_use_fp() call.
I have a realtime handler that is executed periodically, and there is a
float variable in there. When & where do I call rt_use_fp()?
Assume the handler is invoked like this:
rt_task_init(&HandlerTsk, handler, 0, 8000, 4);
rt_task_make_periodic(&HandleTsk, rt_get_time() + 3000, 1193180);
void handler(int i)
{
float offset = 0;
RTIME now, rt_time;
while(1) {
now = rt_get_time();
offset = (float)(now - rt_time) * 3.2227;
rt_time = now;
rt_task_wait();
}
}
Do I even need to call rt_use_fp() at all? I'm running Linux 2.0.35 with
RTLinux 0.9D.
Thank you for your help!
Rob
--- [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/~rtlinux/