![]() |
Re: Coding conventions
As for motor reversals: I believe that we should assume (when sharing code, at least) that to go forward
Code:
left_drive_motor = 254; |
Re: Coding conventions
i agree completely, and i have done it the same way, well, forever, but i wasn't sure what the general consesus was about it.
|
Re: Coding conventions
Quote:
Code:
From the teleoperation code you just set cmdForward = Y axis and cmdRotate = X axis. During autonomous you can rotate in place by keeping cmdForward = 127 and varying cmdRotate. |
Re: Coding conventions
Quote:
The point of my post was not to create a control algorithm, rather to define a convention for all FIRST programmers so that we can more easily communicate. |
Re: Coding conventions
Quote:
|
Re: Coding conventions
Quote:
You've already done it by saying that "drive_motor_right" and "drive_motor_left" are always referenced as 255 being in the forward direction. The sample was just another way to think about it. |
| All times are GMT -5. The time now is 19:57. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi