![]() |
Drive wheel motors using OItoPWM() --- how to debug?
I'm using OI_to_PWM() function to drive wheel motors during the Operator part of the game, and set_PWM() during the Autonomous part, setting to full speed.
It is observed that during the operator mode, it is running slower than the Auto mode, even the driver pushed the joystick to the limit. I assume when the joystick is pushed to the limit, the output to PWM port should be 255(or 0) using OI_to_PWM() function. Is that true? Is there a way to read the output to the PWM while running the OI_to_PWM() function using EasyCPro? I mean without any hardware equipment? |
Re: Drive wheel motors using OItoPWM() --- how to debug?
Use the OI Analog Input block, and throw that to a variable (int should be fine.) Then you can print out that variable, and see what it is.
Jacob |
Re: Drive wheel motors using OItoPWM() --- how to debug?
Quote:
(Note that the maximum PWM value in the IFI control system is 254, not 255.) Quote:
|
| All times are GMT -5. The time now is 08:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi