|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: Swerve questions (Languages, CAN)
Quote:
Good suggestion. The arduino (or other microcontroller) could certainly decode the PWM pulse width. (Complexity and cost should be factored into any final decision.) Decoding PWM duty cycle (which is the datasheet-recommended way to decode the PWM signal for the MA3) would require measuring both the pulse width and the period (or the associated non-pulse width) for the same cycle. I don't think the 2014 FPGA is programmed to do that. FTR, I wasn't recommending using interrupts (on the RIO). I was trying to discourage that idea. Last edited by Ether : 28-11-2014 at 14:12. |
|
#32
|
|||
|
|||
|
Re: Swerve questions (Languages, CAN)
we haven't got the encoders in yet perhaps we will just get the analog encoder instead which should reduce complexity significantly. thanks for all the responses I'll give you an update once we get the encoders In and get this thing running. we are currently making a wooden prototype Of our new pod as we speak
Thanks Bryant |
|
#33
|
||||
|
||||
|
Re: Swerve questions (Languages, CAN)
Quote:
Furthermore, even for people who aren't going to study computer science it would be more useful to know a general-purpose language. The world of programming is larger than the core CS topics but it's also larger than controls and data collection. If you were choosing what to teach based on what would be most useful to a majority of students you'd probably teach them a scripting language or if Excel macros. |
|
#34
|
||||||
|
||||||
|
Re: Swerve questions (Languages, CAN)
Quote:
Visual languages are used to do cutting-edge work in control systems, signal processing, and image processing. Those seem particularly relevant to FRC. Last edited by Joe Ross : 28-11-2014 at 16:39. |
|
#35
|
||||
|
||||
|
Re: Swerve questions (Languages, CAN)
I'm surprised to hear that you have control lag...I'd also add that the analog MA3 absolute encoder is great for this application. We always use them on our steering.
For reference...the robot linked below is running four independent propulsion loops and four independent steering loops on a run of the mill Arduino. No lag, plenty of accuracy. http://www.team221.com/viewproduct.php?id=146 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|