- Forum
- RIO I/O Expansion Card and Navigation Computer
- Linux Installation & Programming
- Python Commands
Python Commands
- casey@fatdoor.com
- Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
9 years 1 week ago #29529233
by casey@fatdoor.com
Python Commands was created 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?
For example, how do I use the rioboard.WritePWMOutput?
Please Log in or Create an account to join the conversation.
- opal
8 years 10 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):
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.
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
- Forum
- RIO I/O Expansion Card and Navigation Computer
- Linux Installation & Programming
- Python Commands
Time to create page: 0.063 seconds