|
Glideforce GF01-121003-2-66 Micro Linear Actuator with Feedback Potentiometer: 12V, 4.3kgf, 17.6mm/s, 30mm Stroke |
|
HP 24V Motor with 48 CPR Encoder for 25D mm Metal Gearmotors (No Gearbox) |
|
Motoron M3T453 Triple I²C Motor Controller with JST SH-Style Connectors and VIN Terminal Block |
|
Motoron M3T453 Triple I²C Motor Controller with JST SH-Style Connectors (No VIN Connector) |
|
Pololu G2 High-Power Motor Driver 24v30 CS |
|
Glideforce GF01-122110-2-66 Micro Linear Actuator with Feedback Potentiometer: 12V, 8.1kgf, 6mm/s, 100mm Stroke |
|
APM81815 Step-Down Voltage Regulator Carrier, 3.3V Out |
|
ACS37030LMYATR-065B3 Current Sensor Large Carrier -65A to +65A, 3.3V |
|
Motoron M3T453 Triple I²C Motor Controller with Soldered Headers |
|
ISO6521 2-Channel Digital Isolator Carrier, 1/1, Default High, Functional Isolation |
How to make a Balboa robot balance, part 4: a balancing algorithm
- 29 January 2018’m Back.
Hey, with further sleuthing of code I’m guessing… are you folks reading the accelerometer values in Balance.cpp?
It seems like there is testing if there is greater than 0 values in Z at rest . and a test with the x axis to run the standup code. I’m I right? Is it possible these tests are not > 0 at 90 degrees?
thanks in advance.
How to make a Balboa robot balance, part 4: a balancing algorithm
- 29 January 2018Hi,
I can get my balboa with arms installed to balance, if I start it standing up, but it will not stand up from a 90 or 85 degree angle lying down.(the angle the robot rests at lying down with the arms installed.)
I have been changing these values in Balance.cpp:
if (angleRate > -2 && angleRate < 2)
{
// It's really calm, so we know the angles.
if (imu.a.z > 0)
{
angle = 110000; changed to 90000 or 80000
}
else
{
angle = -110000; changed to -90000 or -80000
}
distanceLeft = 0;
distanceRight = 0;
}
}
I am I on the wrong track?
I cannot get the red led on with the initial standup code to engage when I press button A.
What part of the balance program “sees” the resting angle when the robot is face down at 110 degrees?
Where should I look to change it to about 87 degrees?