Python Commands

6 years 4 months ago #29529233 by casey@fatdoor.com
We ordered the RIO-AHRS with a MDC2460. I have a raspberry pi and we are using python. I found the example python script that lists a few of the command, but I can't find any documentation on how to USE the commands. The forums say to look at the .h file, but the command structure is not the same.

For example, how do I use the rioboard.WritePWMOutput?

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

6 years 2 months ago #29529535 by opal
Replied by opal on topic Python Commands
Hello Casey,

You are right - the documentation does not cover all details. We are still working to make it better.

In the meantime (from RioBoard.h):
void RioWritePWMOutput(unsigned short val, unsigned char ch);   /* set PWM channel with given value */

First parameter "val" is a duty cycle of PWM signal. Allowed range: 0..65535

Second parameter "ch" is PWM channel. Allowed range: 0..12

I hope it helped. Please don't hesitate to ask more questions.

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

Moderators: opal
Time to create page: 0.119 seconds