please explain the balancing loop algorithm

  • 6 Replies
  • 976 Views
*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1365
  • Humans will disappoint you.
    • Home Page
Re: please explain the balancing loop algorithm
« Reply #1 on: April 23, 2020, 01:38:12 am »
First you'll need to understand how PID controllers work. You can google that.

For that matter, you can google self-balancing robot algorithms as well.

You will need a PID controller for the angle of the robot, nested inside another one that controls the speed of the robot. To remain stationary you set the target angle to 90 degrees and the target speed to 0. To move you have to set the target angle so the robot leans toward the direction of travel and the wheels will have to maintain a net speed in that direction to stop the robot from falling over.

*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
Re: please explain the balancing loop algorithm
« Reply #2 on: April 23, 2020, 02:52:28 am »
google is useless, it spits out useless results, me asking on a forum is google being a worthless failure.

I just need the algorithm

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
In the world of AI, it's the thought that counts!

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: please explain the balancing loop algorithm
« Reply #4 on: April 23, 2020, 06:36:25 pm »
When I was younger I too thought Google to was of course stupid if it's hard to use it. But they are trying.

Nonetheless there is room for improvement. What you and I want is a 'tree' or hierarchy that links things to things so you can find it by walking along branches.

Or better, a updated summary of AGI, right on Google's homepage. Just tell us how deep learning and GPT-2 etc work, ya i know, hard, and etc etc but it is the best way to get the farthest and to most people!

My free book/article I'm writing will hopefully show everyone the way to AGI, it has all brain like things needed I've found in my journey and makes full sense. Can't go wrong there.
Emergent          https://openai.com/blog/

*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
Re: please explain the balancing loop algorithm
« Reply #5 on: April 24, 2020, 02:42:28 pm »
When I was younger I too thought Google to was of course stupid if it's hard to use it. But they are trying.

Nonetheless there is room for improvement. What you and I want is a 'tree' or hierarchy that links things to things so you can find it by walking along branches.

Or better, a updated summary of AGI, right on Google's homepage. Just tell us how deep learning and GPT-2 etc work, ya i know, hard, and etc etc but it is the best way to get the farthest and to most people!

My free book/article I'm writing will hopefully show everyone the way to AGI, it has all brain like things needed I've found in my journey and makes full sense. Can't go wrong there.

google is truly an example of retardation when it comes to investing resources.
I actually spent 6k$ to study mobile dev at a course cause I was so fed up with google spiting out fake tutorials that never work by Pakistanis.

plus they bias the search results feministically

*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
Re: please explain the balancing loop algorithm
« Reply #6 on: April 27, 2020, 06:13:35 pm »
void loop() {
  float expectedTilt = 0;
  float currentTilt = getCurrentTilt(); // From accelerometer
  float currentTiltRate = getCurrentTiltRate(); // From gyro
  float thrust = pid(currentTilt - expectedTilt, 0, currentTilt + currentTiltRate, 0.25, 0, 0.75);

  // Apply thrust to each motor
}

float pid(error, integral, derivative, Kp, Ki, Kd) {
  return -(error * Kp + integral * Ki + derivative * Kd);
}

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
March 28, 2024, 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

260 Guests, 0 Users

Most Online Today: 363. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles