|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Quote:
Robot Map is only called once. You should output the data in something called periodically, like a command. |
|
#2
|
||||
|
||||
|
Re: Encoder questions - using DIO ports
Ok thanks. So now we can see the values in the smart dashboard but how do we use it? If we want to run an auto command that does something like: "drive strait until the encoder value is gresater than 1000. What would it look like? A while, if or something else?
|
|
#3
|
|||
|
|||
|
Re: Encoder questions - using DIO ports
Take a look at File -> new -> Example Robot projects... -> GearsBot.
The relevant code is within the ...team...commands package, namely DriveStraight.java and the team-subsystem methods added to support it. |
|
#4
|
||||
|
||||
|
Re: Encoder questions - using DIO ports
Relevant PSA: https://github.com/Open-RIO/.gitignore
|
|
#5
|
|||
|
|||
|
Re: Encoder questions - using DIO ports
Quote:
Unlike that gitignore though, we do keep our IDE files so it's easier to import into other Eclipse instances. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|