# Sudden uncontrolled Movement on Magni

**URL:** <https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271>\
**Category:** Uncategorized\
**Created:** [February 28, 2019, 9:33am UTC](https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271 "2019-02-28T09:33:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hendrik](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/h/839c29/32.png) [@Hendrik](https://forum.ubiquityrobotics.com/u/Hendrik)\
**Post date:** [February 28, 2019, 9:33am UTC](https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271/1 "2019-02-28T09:33:10Z")

</div>

Hi!  
We are experiencing that a magni robot may under certain conditions uncontrollably move at maximum velocity.  
This is reproducible 100% by the following steps:

- Start magni motor node
- Publish a twist message periodically on /cmd\_vel (e.g., 0.1m/s forward, 30Hz)
- Observe Magni moves forward as expected
- Stop motor node
- Observe Magni stops as expected
- Stop publishing messages on /cmd\_vel
- Start magni motor\_node
- Observe Magni is moving at max velocity for a short period of time seemingly proportional to the original velocity.

This looks like the firmware’s integral is winding up when it is in an unconnected state.  
Since we regard this kind of uncontrolled movement as a security issue, we would greatly appreciate help with it.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [March 5, 2019, 2:42am UTC](https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271/2 "2019-03-05T02:42:02Z")

</div>

This is a very good problem report with a precise set of steps to reproduce the issue. I will look into this issue at once. Thank you for your clear description.

Because some of your robots have firmware version 32 can you please explain to me if this was seen using version 32 firmware or an earlier revision. This is important.

Can you show me the precise command you use to stop the motor node and the command you use to start the motor node (I believe there are different ways).

In the mean time I will assume you use these:  
sudo systemctl stop magni-base.service  
sudo systemctl start magni-base.service

Thank you,  
Mark

---

<div class="post-metadata">

**Author:** ![davecrawley](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/davecrawley/32/24_2.png) [@davecrawley](https://forum.ubiquityrobotics.com/u/davecrawley)\
**Post date:** [March 5, 2019, 4:47am UTC](https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271/3 "2019-03-05T04:47:46Z")

</div>

Thanks for the precise set of instructions for how you achieved this - we have been able to reproduce the bug. We are working to get to root cause - but it looks like it is a firmware issue. If that proves to be the point of cause then we will fix it and push out a firmware update.

---

<div class="post-metadata">

**Author:** ![davecrawley](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/davecrawley/32/24_2.png) [@davecrawley](https://forum.ubiquityrobotics.com/u/davecrawley)\
**Post date:** [March 5, 2019, 4:52am UTC](https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271/4 "2019-03-05T04:52:26Z")

</div>

We’ve opened an issue on this. You can track this issue here as well as add comments or additional information:

> <https://github.com/UbiquityRobotics/magni_robot/issues/78>
>
> Start magni motor node
> Publish a twist message periodically on /cmd\_vel (e.g., …0.1m/s forward, 30Hz)
> Observe Magni moves forward as expected
> Stop motor node
> Observe Magni stops as expected
> Stop publishing messages on /cmd\_vel
> Start magni motor\_node
> Observe Magni is moving at max velocity for a short period of time seemingly proportional to the original velocity.
> This looks like the firmware’s integral is winding up when it is in an unconnected state.
> Since we regard this kind of uncontrolled movement as a security issue, we would greatly appreciate help with it.\`

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [March 27, 2019, 9:32pm UTC](https://forum.ubiquityrobotics.com/t/sudden-uncontrolled-movement-on-magni/271/5 "2019-03-27T21:32:12Z")

</div>

We have released version 32 of firmware today to solve this issue.  
Please see [updating firmware](https://learn.ubiquityrobotics.com/firmware-upgrade) if you require this fix for the issue described in this thread.
