mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Fixed comment problem in GyroMecanum cpp and made other small fixes to sample
programs. Change-Id: Id6ee60085fa369ce3eb2e8261c0352b24886e2ae
This commit is contained in:
@@ -20,7 +20,7 @@ class Robot: public SampleRobot {
|
|||||||
const int rightRearMotorChannel = 2;
|
const int rightRearMotorChannel = 2;
|
||||||
|
|
||||||
double angleSetpoint = 0.0;
|
double angleSetpoint = 0.0;
|
||||||
const double pGain = .005; //propotional turning constant
|
const double pGain = .006; //propotional turning constant
|
||||||
|
|
||||||
//gyro calibration constant, may need to be adjusted
|
//gyro calibration constant, may need to be adjusted
|
||||||
//gyro value of 360 is set to correspond to one full revolution
|
//gyro value of 360 is set to correspond to one full revolution
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
* don't. Unless you know what you are doing, complex code will be much more difficult under
|
* don't. Unless you know what you are doing, complex code will be much more difficult under
|
||||||
* this system. Use IterativeRobot or Command-Based instead if you're new.
|
* this system. Use IterativeRobot or Command-Based instead if you're new.
|
||||||
*/
|
*/
|
||||||
*/
|
|
||||||
class Robot: public SampleRobot {
|
class Robot: public SampleRobot {
|
||||||
Joystick *joystick;
|
Joystick *joystick;
|
||||||
RobotDrive *myRobot;
|
RobotDrive *myRobot;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class Robot extends SampleRobot {
|
|||||||
final int rightRearMotorChannel = 2;
|
final int rightRearMotorChannel = 2;
|
||||||
|
|
||||||
double angleSetpoint = 0.0;
|
double angleSetpoint = 0.0;
|
||||||
final double pGain = .005; //propotional turning constant
|
final double pGain = .006; //propotional turning constant
|
||||||
|
|
||||||
//gyro calibration constant, may need to be adjusted;
|
//gyro calibration constant, may need to be adjusted;
|
||||||
//gyro value of 360 is set to correspond to one full revolution
|
//gyro value of 360 is set to correspond to one full revolution
|
||||||
|
|||||||
Reference in New Issue
Block a user