 | | Re: balancing bot
|
| I recently implemented a new motor control "source" specifically targeted at PID algorithms in the new firmware. It takes a signed number in the range -128 to +128 and converts it into a motor control command. -128 to -1 is reverse direction and (...) (22 years ago, 31-Dec-04, to lugnet.robotics)
| | |  | | Re: balancing bot
|
| (...) that would be interesting, but I meant the wheels. (22 years ago, 31-Dec-04, to lugnet.robotics)
| | |  | | Re: balancing bot
|
| this looks similar to the logic I got working. I tweaked the parameters (equiv. to a,b,c in your code) and it's much more stable now. Interestingly, I have to set 'b' very high, about 2X of what 'a' is set to -- most code I've seen is just the (...) (22 years ago, 31-Dec-04, to lugnet.robotics)
| | |  | | crosscompiler does not compile arrays of objects
|
| Hello! I made a cross-compiler with the sources of gcc-3.4.2 and tried to compile this: Behavior a(); Behavior b() Behavior behaviors[] = {a,b}; ... Make fails with the error message: conversion from Behavior()() to non-scalar type Behavior (...) (22 years ago, 30-Dec-04, to lugnet.robotics.rcx.legos)
| | |  | | Re: balancing bot
|
| thanks much for the links! Using a mod of Frederic Siva's code, I've managed to get my bot somewhat stable. It wobbles around like a drunken sailor but basically stays up. I've got a movie file of it careening around the floor for about a minute (...) (22 years ago, 30-Dec-04, to lugnet.robotics)
| |