 | | ROBOLAB Questions
|
|
Why does ROBOLAB not turn the motors off after a "wait for..." direction? Almost every program that I have written with ROBOLAB has had issues with motors not turning off when they were supposed to. As an example: I have a program that drives one (...) (21 years ago, 23-Sep-05, to lugnet.robotics)
|
| |
 | | WebCamBot
|
|
Though I don't have the Web setup yet, I have a fully operational webcam robot that will hopefully be internet-controllable in the near future (think, by the end of next year, maybe, if IB tests and extended essay don't get in the way!). The ruler (...) (21 years ago, 23-Sep-05, to lugnet.robotics, lugnet.technic, FTX)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) Kev (...) Nice to hear from another bit twiddler.... (...) I do find it ironic that the firmware suports bitwise AND and OR, but not XOR, and also not shifts. Gack! Well, at least we're not having to use loops to add things to themselves to (...) (21 years ago, 22-Sep-05, to lugnet.robotics, FTX)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) Understand what better? Binary math? No problems with that! By "backwards" I meant that multiplication and division by powers of 2 are usually changed to shift L/R by compilers. Also, I am amused that because the firmware doesn't use the (...) (21 years ago, 22-Sep-05, to lugnet.robotics, FTX)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) BrickOS has mocked me from the horizon for some time, but there are two things that are holding me back: (a) Judging by the posts and what I've read, the learning curve seems awfully steep - especially since I'm on a Mac. (b) Rarely have I (...) (21 years ago, 22-Sep-05, to lugnet.robotics)
|
| |
 | | Re: Could we all let it alone? (Was Re: Moonbase Module - Mech Bay 07)
|
|
(...) <major snippage (down to the tech)> Thanks Eric, I appretiate the reply. I have seen a few posts here and there that I find personally irrelevant - and mreely pass them by. I have also occasionally been attacked by posters. In my case it has (...) (21 years ago, 22-Sep-05, to lugnet.build.mecha, lugnet.robotics)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) Maybe it is time to move on to BrickOS? int rotate_right( int value, // the value to be rotated int width, // the width of the rotated field int base, // bitnumber of rightmost bit in rotate field int amount) // the amount to rotate between (...) (21 years ago, 22-Sep-05, to lugnet.robotics)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) Both your 1st & 2nd solutions are very good; thanks to you and other posters to this thread for giving me a much better handle on binary manipulations, and solutions to this problem. In answer to an earlier question, speed is important (simple (...) (21 years ago, 22-Sep-05, to lugnet.robotics)
|
| |
 | | Re: A LEGO double-throw switch?
|
|
(...) First, I learned a *lot*, so thank you all. As for which "solution" I ended up using, first disclaimer, I've not yet built a "crate conveyor". But some prototyping showed that the tank treads just have too much bending friction for what I (...) (21 years ago, 22-Sep-05, to lugnet.robotics)
|
| |
 | | Swan scheduling bug?
|
|
I'm starting to use the swan firmware and I'm having a problem with the scheduling. It seems like a task with a long wait does not yield properly to other tasks. Here the NQC code sample: task taska() { WaitMS(150); AddToDatalog(9900); } task main() (...) (21 years ago, 22-Sep-05, to lugnet.robotics.rcx)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
"Jordan Bradford" <bradfj23REMOVE_THIS...uwosh.edu> wrote in message news:In7A20.1sK1@lugnet.com... (...) The problem is, multiplication and division to a binary CPU, as is the case here, is just a whole series of instructions. Here is the basic (...) (21 years ago, 22-Sep-05, to lugnet.robotics)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) Why in the world wouldn't the firmware support shifting? The hardware (URL) certainly does>. Heh, using multiply and divide to simulate shifting is kind of backwards. (21 years ago, 22-Sep-05, to lugnet.robotics, FTX)
|
| |
 | | pbrick and firmware
|
|
Palm 130, pbrick, rcx 1.0 Can the palm 130 with pbrick be used to control an rcx that doesn't have firmware downloaded? My suspicion is that it won't work without the firmware. Tammy (21 years ago, 22-Sep-05, to lugnet.robotics.rcx)
|
| |
 | | Re: Rotating through a four-bit nibble
|
|
(...) Since I didn't really complete the assignment I'll try again. I didn't honor the x bit request. I confirmed that even SDK v2.5 does not have shifts or rotates, and that in NQC you can only do shifts based on constant amounts. The two routines (...) (21 years ago, 21-Sep-05, to lugnet.robotics)
|
| |
 | | Re: A LEGO double-throw switch?
|
|
(...) So.... what was the final solution for this? Kev (21 years ago, 21-Sep-05, to lugnet.robotics)
|
| |
 | | 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)
|