|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! Last edited by Dalas : 29-01-2016 at 14:21. |
|
#2
|
||||
|
||||
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
|
|
#3
|
|||
|
|||
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Sorry, I should have been more clear - we are using 4 CIMS and 4 miniCIMS. The original post has been edited to specify this.
|
|
#4
|
||||
|
||||
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
What motor controllers are you using? |
|
#5
|
|||
|
|||
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
We are using 8 Talon SR motor controllers. Original post edited.
|
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
Re: FIRST Choice SENSOR BOARD (ACCELEROMETER & GYRO)
Quote:
|
|
#9
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|