![]() |
FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
This is my first thread, so bear with me and let me know if I break any unspoken conventions.
We are a fairly inexperienced team, and just got the SENSOR BOARD (ACCELEROMETER & GYRO) from FIRST Choice (http://firstchoicebyandymark.com/fc16-000). Could we get some advice on connecting and using the sensor board to drive straight? Ideally we could easily disable this function while driving over terrain, getting in a pushing match, etc. We are programming in Java and have an 4-CIM 4-miniCim mechanum wheel drive which we are currently controlling using the RobotDrive class's mecanumDrive_Cartesian method. We are using 8 Talon SR motor controllers with PWM Y-splitters. No comments on the choice of drive train please, just programming/wiring advice. Thanks in advance! |
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
What motor controllers are you using? |
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Have you looked at the tutorial?
http://files.andymark.com/ADI_FRC_Gy...rd_LV_2016.pdf In theory, what you want to do is: Determine a desired gyro angle, and adjust power to the wheels as you drive to keep you pointing in that direction. There may be functions in the libraries that do most of that for you. |
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
- mecanum drivetrain - no encoders - using TalonSR - want to use gyro to drive straight Does this help? |
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Here is another thread with a lot of the same questions/answers.
http://www.chiefdelphi.com/forums/sh...php?&p=1531890 Ask if you need more. |
| All times are GMT -5. The time now is 08:06. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi