![]() |
Autonomous mode does not work
Hello I am a new programmer to FRC and having problems getting Autonomous mode to work. This is the code.
Quote:
|
Re: Autonomous mode does not work
Autonomous mode has to be enable for autonomous code to work. You need to buy this device to test autonomous code
http://andymark.biz/am-0016.html |
Re: Autonomous mode does not work
We already made the dongle for it. And the controller says it is in autonomous mode.
|
Re: Autonomous mode does not work
Quote:
These should be rc_dig_in_xx variables instead. |
Re: Autonomous mode does not work
Quote:
Code:
digital_io_1 = digital_io_2 = digital_io_3 = digital_io_4 = INPUT;Code:
if (rc_dig_in01) |
Re: Autonomous mode does not work
I changed the variables to what you said but it does not compile then. It gives this error
Quote:
|
Re: Autonomous mode does not work
It's "rc_dig_in##" not "rc_dig_in_##" - no final underscore.
Also, why are you checking the value of pwm01? It seems like it would make more sense just to use: Code:
if(rc_dig_in01) { |
Re: Autonomous mode does not work
With the current setup you have, the PWM outputs will only change if the output is already neutral--127. You want to pull these statements out, because once you have sent a command, the outputs will no longer be neutral--no longer 127.
Also, you do need to use rc_dig_in01 for digital input 1. Let me know if you need more help. |
Re: Autonomous mode does not work
Quote:
p.s. i work with sunny |
Re: Autonomous mode does not work
Quote:
|
| All times are GMT -5. The time now is 17:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi