|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: easyC trouble
Quote:
|
|
#2
|
||||
|
||||
|
Re: easyC trouble
Quote:
|
|
#3
|
|||
|
|||
|
Re: easyC trouble
Quote:
The default code is there, but it's built-in. You just write programs that operate the robot and don't need to look at anything else. You can literally write 10 line (block) programs that drive using the gyro or camera for control. Check out the tutorials in EasyC to get an idea of where to start. If you are still having trouble - send me email and we can talk off-line. |
|
#4
|
||||
|
||||
|
Re: easyC trouble
ok i've got my robot to drive and turn, using easyc to write the code, however i have another motor that i want to be able to turn on by pressing the trigger button on the joystick how do i write code for that, and that will turn the motor counter clockwise then if i release the trigger i want the motor to stop then if i press the thumb button the motor will turn clockwise, can someone give me detailed instructions.
|
|
#5
|
|||
|
|||
|
Re: easyC trouble
Quote:
To read the trigger inputs, use the "Digital OI Input" block. It returns a 1 or a 0 depending on the state of the trigger. You can check that value and then decide whether or not to drive the motor. To operate the motor, use the "PWM Control" block. It takes a PWM port number and a speed. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EasyC v2.0 is mandatory for FVC! | skimoose | FIRST Tech Challenge | 7 | 14-01-2006 18:37 |
| Kickoff easyC workshop integrated into EasyC help file | Dan Larochelle | Programming | 0 | 11-01-2006 06:12 |
| EasyC v. 2.0 - New features, custom user functions, and more! | artdutra04 | FIRST Tech Challenge | 1 | 02-11-2005 13:36 |