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 / *1814 (-10)
  Re: Assembly in my C-program
 
(...) If you want to drive directly the motors you should first disable motor handling in legOS (remove CONF_DMOTOR definition in config.h). Then you can create a high priority task that switches motors on and off writing in the motor output port. (...) (23 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
(...) pulses (...) at (...) would (...) Hmmmm. This should be possible, but it's a bit more tricky with stepper motors - you have to allow for the speed-up and slow-down. Thus just calling motor_speed(50) would have to initiate a task that starts (...) (23 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
Actually I am trying to control a stepper motor. So when i need to send 50 pulses fast, motor on and off takes same time because there same other tasks running at the same time. So it would be much quicker if I could just call motor speed (50), and (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Assembly in my C-program
 
(...) to (...) This should be performed by mapping a variable on top of the memory location, and NOT by inline assembly. (...) What is wrong with speed=0 for off and speed=255 for on? /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Assembly in my C-program
 
HI, I was wondering if I could write assembly code in my c-program. I would like to access the motor output port as a digital port and control when it is on and when off (possibly writting something like "mov.b r6l,@0xf000:16"). Or can I change the (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) We are going to use this solution. Seems simpler. /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Running IR in the background
 
(...) Congratulations! Could you post your source code here, to compare with the solution that we previously submitted to an almost identical question? We use an active light sensor reading in one taks, with a different task bangin zeroes using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) We arrived at that solution independently here... it makes more sense. Also, since only the parts of the kernel we actually use need to be linked in, the result should be much smaller than a full kernel. Furthermore, the compiler we are using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: .lx format
 
(...) We arrived at that solution independently here... it makes more sense. Also, since only the parts of the kernel we actually use need to be linked in, the result should be much smaller than a full kernel. Furthermore, the compiler we are using (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)
 
  Re: Library use in LegOS
 
(...) of (...) For the IAR compiler, this should not a problem. The libraries are optimized for minimal size, so we can probably use the standard libraires. And give our students the benefit of a full C lib. /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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