# Go1 Push-ups while Monitoring Battery State

**URL:** <https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739>\
**Category:** Robots\
**Created:** [February 10, 2023, 3:30pm UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739 "2023-02-10T15:30:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)\
**Post date:** [February 10, 2023, 3:30pm UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/1 "2023-02-10T15:30:15Z")

</div>

Check out the update to our Go1-JS library:

[![](https://canada1.discourse-cdn.com/flex036/uploads/droneblocks/original/1X/492a54bb5aaae36c5b0fa6a30875601241292741.jpeg "Go1 Push-ups Using JavaScript and Monitoring Battery State") ](https://www.youtube.com/watch?v=do8A93zaJ5E)

@Fritz please give it a try and let us know what you think!

---

<div class="post-metadata">

**Author:** ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)\
**Post date:** [February 11, 2023, 2:31am UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/2 "2023-02-11T02:31:07Z")

</div>

With some help from @dbaldwin I got this to work. I appreciate trying something other than walking, and it was interesting to see how fast the battery power drops. Unfortunately, I was unable to get the obstacle avoidance example to run and get error messages. May be a problem with the type script.  
[https://youtu.be/-fmEmx\_LgsA](https://youtu.be/-fmEmx_LgsA)

---

<div class="post-metadata">

**Author:** ![I.TeachPolarBears](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/i.teachpolarbears/32/375_2.png) [@I.TeachPolarBears](https://community.droneblocks.io/u/I.TeachPolarBears)\
**Post date:** [February 11, 2023, 5:46pm UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/3 "2023-02-11T17:46:03Z")

</div>

We had an error pop up Friday that prevented us from running the push ups and battery script, but we also had limited time to try it so it could have been a syntax error. We’ll know more Monday.

I do have a Node question though. If you have already pulled from the NPM repository, how do you update that folder, or do you have to start from a fresh location?

Also, does anyone have any basic Node tutorials that are solid? It’s hard to tell if we’re having an issue with a javascript built in or something from the class file, and that makes troubleshooting much harder. It is on my list of things to do when I get a few minutes, but I haven’t investigated what the good resources are beside the Odin project.

---

<div class="post-metadata">

**Author:** ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)\
**Post date:** [February 11, 2023, 6:50pm UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/4 "2023-02-11T18:50:03Z")

</div>

In the package.json you need to add the line. “type”: “module”, Then it should work.

---

<div class="post-metadata">

**Author:** ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)\
**Post date:** [February 11, 2023, 6:53pm UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/5 "2023-02-11T18:53:54Z")

</div>

Also, I looked at the code for obstacle avoid and it had 6 errors, which were from the type script. I was able to fix them and get it to work. It is a great example, but too slow to be useful. Even at the slowest walk, the dog crashes into the wall. But the fact that I got it to work makes it a great success. Thanks @dbaldwin for doing these examples! [Obstacle Avoid - YouTube](https://youtu.be/EoisvyMgDRw)

---

<div class="post-metadata">

**Author:** ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)\
**Post date:** [February 13, 2023, 4:05am UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/6 "2023-02-13T04:05:50Z")

</div>

Hopefully we can improve the data frequency. There are some SLAM messages that I’ve seen, but only available to dogs with the 2D Lidar if I understand correctly. I would expect latency to a lot better in these cases, but we won’t know until we test. If your Lidar 2D or 3D?

---

<div class="post-metadata">

**Author:** ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)\
**Post date:** [February 13, 2023, 4:12am UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/7 "2023-02-13T04:12:35Z")

</div>

Mine is the 2D Lidar. Maybe you can do an example that uses the ultrasonic sensors.

---

<div class="post-metadata">

**Author:** ![dbaldwin](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dbaldwin](https://community.droneblocks.io/u/dbaldwin)\
**Post date:** [February 13, 2023, 4:16am UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/8 "2023-02-13T04:16:15Z")

</div>

Good call. Let me dig and see what I can find out.

---

<div class="post-metadata">

**Author:** ![Fritz](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.droneblocks.io/fritz/32/422_2.png) [@Fritz](https://community.droneblocks.io/u/Fritz)\
**Post date:** [February 13, 2023, 4:33am UTC](https://community.droneblocks.io/t/go1-push-ups-while-monitoring-battery-state/739/9 "2023-02-13T04:33:16Z")

</div>

That would be great. By the way, did you see this before the Super Bowl. They are everywhere… 😀[Super bowl dogs - YouTube](https://youtu.be/f29DrqFjQOs)
