|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: SetPWM and our IR controls
It appears that that may work, except there is no such function as SetPWM in Kevin's code. Instead, use:
Code:
pwm01 = 65; pwm02 = 192; |
|
#2
|
|||
|
|||
|
Re: SetPWM and our IR controls
Quote:
|
|
#3
|
|||
|
|||
|
Re: SetPWM and our IR controls
Hey guys, thanks for the help, I think i'm getting there; however, I'm still having some struggles.
I'm begining to think that I'm just doing something really simple wrong. Here is the process I undergo to test my code. 1) Code in easyC Pro in the OperatorControl function (I've also tried in Autonomous) 2) Power up robot 3) Hold down "prog" until the "Program Status" LED turns a solid orange 4) In easyC, I hit Build & Download 5) Once it is loaded, I power down the bot 6) When I power it back up, the code should automatically execute, yes? |
|
#4
|
|||||
|
|||||
|
Re: SetPWM and our IR controls
Do you have a operator interface hooked up?
|
|
#5
|
|||
|
|||
|
Re: SetPWM and our IR controls
you do need the OI connected to the RC either by radio or tether before the code will run
|
|
#6
|
|||
|
|||
|
Re: SetPWM and our IR controls
Make sure you put your OperatorControl function inside the main function.
And I don't think you have to power down your robot, it should automaticly work well. Make sure you are not programming in competition mode (when it's divided to 3 functions). 'Cause that way I don't think it can work (I think it only works when you are in a competition [when the competition port on the OI is connected]). Just to the following: 1) Open a regular new EasyC pro project. 2) Make your OperatorControl function (in the user functions). 3) Drag and drop the OperatorControl function you just made into a while(1) loop in the main function. 4) Power up the robot. 5) Hold down "prog" until "Program Status" LED turns orange. 6) Press Build and Download in EasyC pro. 7) Now it should work ![]() I suggest you first build and download a simple program (like putting your motor in half speed) and check if it works well. Again, check if the PWM cables are connected to the victor that is connected to the motor you want to activate. Hope it helped. Team 2217 Last edited by itsme : 12-01-2008 at 15:36. |
|
#7
|
|||
|
|||
|
Re: SetPWM and our IR controls
AHH! I've been creating competition projects
...I'll post back when I get a chance to create a standalone and try it out.Thanks again. |
|
#8
|
|||||
|
|||||
|
Re: SetPWM and our IR controls
A competition program will work if you plug a switch into the competition port that enables the robot.
|
|
#9
|
|||
|
|||
|
Re: SetPWM and our IR controls
Quote:
But I'm guessing taggartbg didn't do that either (correct me if I'm wrong). |
|
#10
|
|||
|
|||
|
Re: SetPWM and our IR controls
Hey everybody,
Thanks for all you're help, our code is up and functional now, thank you /Taggart |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help us program our controls | dude_brd | Programming | 1 | 10-02-2007 12:02 |
| need help on programing our controls | dude_brd | Programming | 1 | 07-02-2007 18:42 |
| FRC: Reset and Program Controls | yanksrock777 | General Forum | 4 | 24-01-2007 22:37 |
| Push Button and Switch Suppliers for OI controls | Goldberg204 | Control System | 8 | 11-01-2007 15:27 |
| pic: 383`s controls and driver | Manoel | Robot Showcase | 13 | 03-03-2005 00:57 |