Home Community Blog Buy Now
Blog

Misty Community Forum

Misty.Halt in C#

I am stuck on implementing _Misty.Halt in C#. The MotorMasks is hurting my brain, I see MotorMask has definitions for RightDrive, etc. I am having problems getting an Ilist for the function.
Any help would be appreciated.

Thanks
Jeff

Self Solved.
IList<MotorMask> myList = new List<MotorMask>();
myList.Add(MotorMask.HeadPitch);
_misty.Halt(myList, OnResponse);

I was working on a “look” that I wanted Misty to quickly drop her head. Moving Pitch at 100% velocity was a little slow. Also, I had arm movements happening at the same time. This code only stops her pitch motor.

1 Like

nice work!

Perhaps you could throw a pull request to https://github.com/MistyCommunity/Documentation with this example to improve documentation of the C# API.

1 Like