|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Vex start up code run PWM outputs without Rx
With the default startup code (the MPLAB project available at http://www.vexlabs.com/vex-robotics-downloads.shtml)
The PWM outputs are not updated when the Reciever unit is not plugged in/transmitter is off. If in Process_Data_From_Local_IO I try to set pwm01=255, nothing happens. I tried to call Process_Data_From_Master_uP(); every loop but that did not help. I would like to use my robot autonomously without having to have the transmitter on or the reciever plugged in. Thanks. |
|
#2
|
||||
|
||||
|
Re: Vex start up code run PWM outputs without Rx
Quote:
1) Search before posting. 2) This question comes up often. |
|
#3
|
||||
|
||||
|
Re: Vex start up code run PWM outputs without Rx
Actually I did search before I posted this message and I read that thread, if I understood correctly, that method was not for me. When I put in
Code:
txdata.user_cmd = 0x02; /* Tell master you want to be in auton mode. */ [EDIT]: I have found another way by setting the autonomous loop to "0" is there a prettier way? Last edited by intellec7 : 05-05-2006 at 22:18. |
|
#4
|
|||||
|
|||||
|
Re: Vex start up code run PWM outputs without Rx
If you want to run your regular code autonomously, but don't want to put it in the autonomous loop, you can bypass the autonomous loop by commenting out the call in main.c and arranging it so you just fall through your normal code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| Assisance with Win98 | mgreenley | IT / Communications | 19 | 08-10-2004 22:37 |
| Using an Operator Interface with the 2004 EDU RC wirelessly | Dave Flowerday | Robotics Education and Curriculum | 34 | 19-04-2004 19:06 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |