Menu

Topic-icon Mixed mode example

More
1 year 1 month ago #29534211 by faudeon
Mixed mode example was created by faudeon
Hello

I'm looking for an example explaining how to use a 2 channel controller in mixed mode.

Let's say I have a forward speed of 2 m/s and a rotation speed of 90 degres / seconds, how should i calculate the parameters to send to both channel 1 and channel 2?

Thanks

Please Log in or Create an account to join the conversation.

  • Gabriel_Isko
  • Gabriel_Isko's Avatar
1 year 1 month ago #29534219 by Gabriel_Isko
Replied by Gabriel_Isko on topic Mixed mode example
You didn't specify the drive system that you are using. I am going to assume a differential drive, since that is what mixed mode is designed for.

In mixed mode, channel 1 is your throttle command and channel 2 steering your steering command. The controller will set each wheel to the throttle command and then add the steering command to channel one and subtract it from channel 2. Motor commands are bounded between -1000 and 1000. How the controller treats boundaries for the motor commands depends on the mixed mode you choose, however mixed mode 1 is recommended because it always maintains the steering speed of your robot.

Actually calculating how fast the robot will turn is beyond the scope of a forum post. Expect a FAQ about mixed steering mode, and an Application Note about Differential Drive kinematics on our motor controllers soon. You can reference this paper in the meantime.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.111 seconds
Go to top