To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3252
3251  |  3253
Subject: 
Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 28 Apr 2003 16:37:36 GMT
Viewed: 
3003 times
  
Bernhard Powolny wrote:

I changed in /boot/config.h

//#define CONF_DSENSOR_VELOCITY           //!< rotation sensor velocity
to
#define CONF_DSENSOR_VELOCITY           //!< rotation sensor velocity
because it use sys_time too.

To get rid of this error, find and replace all occurrences of sys_time
with get_system_up_time().

If you look at include/time.h, you will find that the direct reading of
the sys_time variable is not allowed anymore. There was a thread about
the problem with the reading of sys_time on this newsgroup a while ago.

Regards,

Michael



Message is in Reply To:
  Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
 
(...) now i tried to change //#define CONF_DSENSOR_VELOCITY //!< rotation sensor velocity to #define CONF_DSENSOR_VELOCITY //!< rotation sensor velocity because it use sys_time too. same error: /usr/local/bin/h8300...hi-hms-gcc -O2 -fno-builtin (...) (21 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR