 | | Re: Rotating through a four-bit nibble
|
|
(...) Well, your example has the nibble of interest in the middle of the register. Due to boundary conditions, it might be cheaper to have it in the least significant bits of the 16 bit register. In your example you are rotating by an aribtrary (...) (21 years ago, 21-Sep-05, to lugnet.robotics)
|
| |
 | | Re: time sampling under the rcx standard OS
|
|
(...) Here's a code byte from my LegWay code. ---- int MotorSpeedArray[32] = {1,3,2,0}; // Speeds // ... later in the program... if (sys_time>CheckTime) // check system timer - is it time to check sensors again? { L1 = ReadSensor(SENSOR_1); L3 = (...) (21 years ago, 21-Sep-05, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: New NASA challenge
|
|
(...) The Centennial Challenges in general would probably be a good fit for Mindstorms. (URL) seems the Elevator2010 competition could easily be adapted for use with Lego and Mindstorms (sans beam power). Just decide on a commonly available ribbon (...) (21 years ago, 21-Sep-05, to lugnet.robotics)
|
| |
 | | Re: time sampling under the rcx standard OS
|
|
Hi Steve, As I'm quite new to BrickOS and to C programming, I'm sorry I'm not sure I understood what you meant, neither how you do this : (...) - Do you check the sensor at a higher rate, and only send a command to the motor at 1kHz ? - How do you (...) (21 years ago, 21-Sep-05, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: Beeesh Art
|
|
(...) Pardon me Mr. Staple, I was unable to type a proper response containing additional technical data as I promised. I ended up working on two different projects this evening. I had a productive night. When I did sit down to the computer I found (...) (21 years ago, 21-Sep-05, to lugnet.build.mecha, lugnet.robotics)
|
| |
 | | New NASA challenge
|
|
Seems like the kind of thing one could prototype with Mindstorms quite well. (URL) Chris 'Xenon' Hanson | Xenon @ 3D Nature | (URL) "I set the wheels in motion, turn up all the machines, activate the programs, and run behind the scenes. I set the (...) (21 years ago, 20-Sep-05, to lugnet.robotics)
|
| |
 | | Re: Beeesh Art
|
|
(...) Interesting, when I arrive at the studio I will type up a response. There are some items that may shed some light on the robot's operation. C-ya in a bit. e (21 years ago, 20-Sep-05, to lugnet.build.mecha, lugnet.robotics)
|
| |
 | | Re: Beeesh Art
|
|
(...) I am glad to hear that Jama is still around - I thought it had been disassembled. I might have some ideas for programming it too... I have not been send the Jama art work, but I would love to see it. Is there room in Jama, or an evoloution of (...) (21 years ago, 20-Sep-05, to lugnet.build.mecha, lugnet.robotics)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) What are you optimizing for? Code clarity? Code speed? Code length? There are (to my knowledge) no truly pretty solutions to this. I would tend to go with: int rotbits(int input, int numbits, int offset, int rotdist) { int mask = (~((~0) << (...) (21 years ago, 20-Sep-05, to lugnet.robotics)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) One way to do this might be by using multiplication and division. Temp = (Input & 0000 0000 0011 0000)*4 + (Input & 0000 0000 1100 0000)/4 Output = (Input & 1111 1111 0000 1111) & (Temp & 0000 0000 1111 0000) Although I imagine that can be (...) (21 years ago, 20-Sep-05, to lugnet.robotics)
|
| |
 | | Rotating through a four-bit nibble
|
|
No, it's not pornographic (look over in rtlToronto - I hear it's a fun thread). But I'm working in NQC, and I need to rotate the bit series in a 4-bit (or 8-bit) nibble embedded in a 16-bit word. Annoying. Any suggestions? Masking the desired four (...) (21 years ago, 20-Sep-05, to lugnet.robotics)
|
| |
 | | NWBrickCon™ 2005 Technic Award Sneak Peek
|
|
NWBrickCon is almost here. This is just a last little push for anyone bringing Technic MOCs. If you are bringing anything in the Technic theme please email me and let me know what you are bringing and how much table space you will need. ... and now (...) (21 years ago, 20-Sep-05, to lugnet.events.nwbrickcon, lugnet.events, lugnet.announce, lugnet.technic, lugnet.robotics, FTX) !!
|
| |
 | | position servoing under BrickOS
|
|
Thanks to your advices, Dick, Matt, and Steve, I've been very happy to solve my time sampling problems, installing BrickOS, which runs the rcx fast enough to get a proper position servoing (using rotation or light sensor, and a PID controller). I (...) (21 years ago, 20-Sep-05, to lugnet.robotics.rcx)
|
| |
 | | error in using brickOS under Bricx Command Center
|
|
Dear all, I am new to Lego Mindstorms programming. Recently I installed Bricx Command Center in Windows XP Home following the instructions in (URL) I am able to use NQC and leJOS but not brickOS under Bricx Command Center. (Downloading the brickOS (...) (21 years ago, 17-Sep-05, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Legway
|
|
(...) Yes, one of the most popular robots I've made, when it's working well, just stands there... :) (...) That's fine with me. However, don't be too surprised if it DOESN'T attract a big crowd. It's a big attraction to people who understand what it (...) (21 years ago, 19-Sep-05, to lugnet.robotics)
|
| |
 | | Re: Legway
|
|
Hello, (...) I made a Legway too this weekend (i ordered some sensors to hitechnic). I didn't see it in real life before. It is really funny to see this robot standing up on only 2 wheels. if you're ok for this, Steve, i will show it at LEGOWorld (i (...) (21 years ago, 19-Sep-05, to lugnet.robotics)
|
| |
 | | Re: time sampling under the rcx standard OS
|
|
(...) Well, in BrickOS, my loops usually execute at > 1kHz, so I usually just set it to check the sensor, and set the motor every 1ms. So it just keeps checking the clock. (...) Yes. There's an option that lets you download an "SREC" type of file. I (...) (21 years ago, 19-Sep-05, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: time sampling under the rcx standard OS
|
|
(...) Sorry, I didn't explain. This program only aims at checking the loop frequency capability of the rcx firmware, implementing a PWM. The rotation sensor is only used as a potentiometer knob, allowing me to determine by hand the PWM pulse as (...) (21 years ago, 19-Sep-05, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: time sampling under the rcx standard OS
|
|
Thank you Matt, the RCX loops much faster with your advices : about 10 loops per second. But as this frequency depends on the calculations included in the loop, Im afraid this will not be enough. So I tried to download (URL) but it just appears as (...) (21 years ago, 18-Sep-05, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: time sampling under the rcx standard OS
|
|
Thank you Dick, for advicing me to switch to the faster firmware, Im sure I need both a 1-millisecond basic clock, and the 128 power level capability. So I tried to download it from (URL) but it just appears as a text file, which I dont know how (...) (21 years ago, 18-Sep-05, to lugnet.robotics.rcx.nqc)
|