|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Our experiments with omni drive (field centric)
Quote:
Back to the purpose of this tread: nice work! I love how concise and neat the code is. |
|
#2
|
||||
|
||||
|
Re: Our experiments with omni drive (field centric)
off topic: I think anything to do with stats should be outlawed in public places
I just posted that because in my complacency I have killed 3 routers this year from reverse polarity... On topic: If anyone uses this make sure that you have the IsEnabled() in the main while loop because if the robot is disabled the integration will loose it mind causing it to go into an uncontrollable death spin when re-enabled. |
|
#3
|
||||
|
||||
|
Re: Our experiments with omni drive (field centric)
Very clean and simple. I like it.
My only critique is that you did not use the teleopPeriodic() method properly. It will automatically loop every 20ms, so there is no need to include your own while loop. All of the initialization code (such as zeroing the gyro) can go into teleopInit(), which will be called once at the beginning of teleop. |
|
#4
|
||||
|
||||
|
Re: Our experiments with omni drive (field centric)
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|