|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Need serious help with coding!!
How can i program the part of my robot that will tilt the bridge towards me. i want it to go tilt forward then back. i am coding in netbeans (java).
|
|
#2
|
||||
|
||||
|
Re: Need serious help with coding!!
The answer to your question can be affected by a lot of things:
|
|
#3
|
||||
|
||||
|
Re: Need serious help with coding!!
|
|
#4
|
|||
|
|||
|
Re: Need serious help with coding!!
Quote:
Also, do you have code that already exists that you would like for us to take a look over/review for you? |
|
#5
|
|||
|
|||
|
Re: Need serious help with coding!!
i am using jaguars(speedcontrollers) i have something like ahand with wheels that i want to tilt. i want a button to toggle it one button tilts forward other button makes it goes backwards
and yes i have code i will post it that too |
|
#6
|
||||
|
||||
|
Re: Need serious help with coding!!
Quote:
|
|
#7
|
|||
|
|||
|
Re: Need serious help with coding!!
a basic code would be
Code:
if(joystick.getRawButton(4)
jaguar.set(1);
else if(joystick.getRawButton(5)
jaguar.set(-1);
else
jaguar.set(0);
|
|
#8
|
|||
|
|||
|
Re: Need serious help with coding!!
Quote:
Code:
if(joystick.getRawButton(4) && !joystick.getRawButton(5)) |
|
#9
|
||||
|
||||
|
Re: Need serious help with coding!!
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|