Go to Post Don't be in a rush to build a robot until you know what robot it is you need to build. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-12-2018, 11:50 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 654
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
CTRE Phoenix Framework Build Week 1 update

Hello all,
Phoenix 5.2.1.1 was posted earlier today at...
http://www.ctr-electronics.com/contr...ical_resources
... where you can find the installer, release notes, and various documentation links.

This release includes the restoration of Motion Profile Control Mode in the Talon SRX.
Be sure to update Talon firmware to 3.3 if you intend to use Motion Profile.

Updated motion profile examples have been posted on our example repositories.
https://github.com/CrossTheRoadElec/...amples-LabVIEW
https://github.com/CrossTheRoadElec/...ples-Languages

Latest firmware versions can also be found...
https://github.com/CrossTheRoadElec/...mware-versions
...and the firmware files are placed in your development PC after installing Phoenix...
https://github.com/CrossTheRoadElec/...e-crf-location

We have also decided to compile/release a version of last season's CTRE v4 Toolsuite that is compatible with the 2018 roboRIO image, due to the response of teams who are not comfortable porting/updating their various software components to the newer and back-breaking Phoenix v5. However, this package will not support the Victor SPX and CANifier devices, and requires the use of last seasonís Talon SRX firmware (2.34 or earlier). The CTRE Toolsuite v4_Legacy package also provides a LifeBoat utility for installing last seasonís web-based plugin so that Self-Test features are functional.
The toolsuite was tested against several of last seasonís CTRE Examples, found hereÖ
https://github.com/CrossTheRoadElec/...les-STEAMWORKS

As always feel free to reach out to us for questions and concerns via our support email or GitHub.
Good luck teams!
__________________
Omar Zrien - CTR Electronics - Cross The Road Electronics - Chief Software/Owner
CTRE New products | CTRE/FRC Source Examples | FRC Installer (for Talon SRX and more)
Get Latest Updates on Facebook | Twitter
Reply With Quote
  #2   Spotlight this post!  
Unread 01-12-2018, 11:54 PM
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,620
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: CTRE Phoenix Framework Build Week 1 update

Awesome, thanks Omar!!
__________________
CalGames 2009 Autonomous Champion Award
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC).
Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
2017 Utah Regional Winner!, Sacramento Finalist, Newton/Carver Innovation in Control, Newton #5 Captain
2018 WFFA Sacramento
Reply With Quote
  #3   Spotlight this post!  
Unread 01-13-2018, 07:08 AM
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 408
gerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond repute
Re: CTRE Phoenix Framework Build Week 1 update

Thanks folks! We'll start working on updating today!
Reply With Quote
  #4   Spotlight this post!  
Unread 01-13-2018, 04:35 PM
Oblarg Oblarg is offline
Registered User
AKA: Eli Barnett
FRC #0449 (The Blair Robot Project)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Philadelphia, PA
Posts: 1,835
Oblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond repute
Re: CTRE Phoenix Framework Build Week 1 update

As someone who was disappointed in the way the new software was rolled out, credit to CTRE for responding to feedback and providing support for the old API for those that need it.
__________________
"Mmmmm, chain grease and aluminum shavings..."
"The breakfast of champions!"

Member, FRC Team 449: 2007-2010
Drive Mechanics Lead, FRC Team 449: 2009-2010
Alumnus/Technical Mentor, FRC Team 449: 2010-Present
Lead Technical Mentor, FRC Team 4464: 2012-2015
Technical Mentor, FRC Team 5830: 2015-2016


FRC Drivetrain Characterization
Reply With Quote
  #5   Spotlight this post!  
Unread 01-13-2018, 05:27 PM
phurley67's Avatar
phurley67 phurley67 is offline
Programming Mentor
AKA: Patrick Hurley
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton, Michigan
Posts: 184
phurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to all
Re: CTRE Phoenix Framework Build Week 1 update

Going the through the documentation and examples, and I have a question with the VelocityClosedLoop example.

In particular this section:

Code:
        /* set closed loop gains in slot0 */
        _talon.config_kF(Constants.kPIDLoopIdx, 0.34, Constants.kTimeoutMs);
        _talon.config_kP(Constants.kPIDLoopIdx, 0.2, Constants.kTimeoutMs);
        _talon.config_kI(Constants.kPIDLoopIdx, 0, Constants.kTimeoutMs); 
        _talon.config_kD(Constants.kPIDLoopIdx, 0, Constants.kTimeoutMs);
	}
    /**
     * This function is called periodically during operator control
     */
    public void teleopPeriodic() {

                /* snip */

        	/* Speed mode */
        	/* 4096 Units/Rev * 500 RPM / 600 100ms/min in either direction: velocity setpoint is in units/100ms */
        	double targetSpeed = leftYstick * 4096 * 500.0 / 600; 
        	_talon.set(ControlMode.Velocity, targetSpeed); /* 1500 RPM in either direction */
As I see it in native units your max commanded velocity would be ~3413 (4096 * 500 / 600), there is a feed forward being set at 0.34. If the robot is stopped my error would be ~3413 * 0.34 = ~1160

What is that unit? I would have assumed it was percent output, and that is my confusion/question.

Thanks
__________________
Lightning Robotics -- Give me an Aaaaa

Reply With Quote
  #6   Spotlight this post!  
Unread 01-13-2018, 07:00 PM
EthanJF123 EthanJF123 is offline
Registered User
FRC #2614
 
Join Date: Mar 2015
Location: Morgantown, WV
Posts: 18
EthanJF123 is an unknown quantity at this point
Re: CTRE Phoenix Framework Build Week 1 update

Using this framework, is there a way to specify that the robot is using a CTRE Relative Encoder? The options available in the LabVIEW selector do not correspond to this type of encoder.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-13-2018, 08:27 PM
Oblarg Oblarg is offline
Registered User
AKA: Eli Barnett
FRC #0449 (The Blair Robot Project)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Philadelphia, PA
Posts: 1,835
Oblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond repute
Re: CTRE Phoenix Framework Build Week 1 update

Quote:
Originally Posted by phurley67 View Post
Going the through the documentation and examples, and I have a question with the VelocityClosedLoop example.

In particular this section:

Code:
        /* set closed loop gains in slot0 */
        _talon.config_kF(Constants.kPIDLoopIdx, 0.34, Constants.kTimeoutMs);
        _talon.config_kP(Constants.kPIDLoopIdx, 0.2, Constants.kTimeoutMs);
        _talon.config_kI(Constants.kPIDLoopIdx, 0, Constants.kTimeoutMs); 
        _talon.config_kD(Constants.kPIDLoopIdx, 0, Constants.kTimeoutMs);
	}
    /**
     * This function is called periodically during operator control
     */
    public void teleopPeriodic() {

                /* snip */

        	/* Speed mode */
        	/* 4096 Units/Rev * 500 RPM / 600 100ms/min in either direction: velocity setpoint is in units/100ms */
        	double targetSpeed = leftYstick * 4096 * 500.0 / 600; 
        	_talon.set(ControlMode.Velocity, targetSpeed); /* 1500 RPM in either direction */
As I see it in native units your max commanded velocity would be ~3413 (4096 * 500 / 600), there is a feed forward being set at 0.34. If the robot is stopped my error would be ~3413 * 0.34 = ~1160

What is that unit? I would have assumed it was percent output, and that is my confusion/question.

Thanks
Talon feedforward units have always been sort of silly; max is 1023.
__________________
"Mmmmm, chain grease and aluminum shavings..."
"The breakfast of champions!"

Member, FRC Team 449: 2007-2010
Drive Mechanics Lead, FRC Team 449: 2009-2010
Alumnus/Technical Mentor, FRC Team 449: 2010-Present
Lead Technical Mentor, FRC Team 4464: 2012-2015
Technical Mentor, FRC Team 5830: 2015-2016


FRC Drivetrain Characterization
Reply With Quote
  #8   Spotlight this post!  
Unread 01-13-2018, 08:47 PM
phurley67's Avatar
phurley67 phurley67 is offline
Programming Mentor
AKA: Patrick Hurley
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canton, Michigan
Posts: 184
phurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to allphurley67 is a name known to all
Quote:
Originally Posted by Oblarg View Post
Talon feedforward units have always been sort of silly; max is 1023.


Thanks that is helpful (and a little silly).
__________________
Lightning Robotics -- Give me an Aaaaa

Reply With Quote
  #9   Spotlight this post!  
Unread 01-13-2018, 11:11 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 654
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: CTRE Phoenix Framework Build Week 1 update

Quote:
Originally Posted by EthanJF123 View Post
Using this framework, is there a way to specify that the robot is using a CTRE Relative Encoder? The options available in the LabVIEW selector do not correspond to this type of encoder.
CTRE Magnetic Encoder (relative) is Quadrature
CTRE Magnetic Encoder (absolute) is Pulse Width

See section 5.3 in CTRE Magnetic Encoder User's Guide.

Or here...
https://github.com/CrossTheRoadElec/...s-of-my-sensor
__________________
Omar Zrien - CTR Electronics - Cross The Road Electronics - Chief Software/Owner
CTRE New products | CTRE/FRC Source Examples | FRC Installer (for Talon SRX and more)
Get Latest Updates on Facebook | Twitter
Reply With Quote
  #10   Spotlight this post!  
Unread 01-14-2018, 12:57 AM
Jaci's Avatar
Jaci Jaci is online now
http://imjac.in/ta/name
AKA: Jaci R Brunning
FRC #5333 (Can't C#) #5663 (Ground Control) | (OpenRIO, FRC West Aus)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Perth, Western Australia
Posts: 572
Jaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond reputeJaci has a reputation beyond repute
Re: CTRE Phoenix Framework Build Week 1 update

Thank you for listening to the feedback and following up on it, I'm sure many are pleased by the ability to pick between Toolsuite and Phoenix, and even moreso to be not locked into one specific library and/or firmware. Well played.
__________________
Jacinta R

Curtin FRC (5333+5663) : Senior Mentor
OpenRIO : Owner

Website | Github
jaci.brunning@gmail.com
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:29 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi