Go to Post STEM: Science, Trial, Error, Math. - hrench [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 13-02-2015, 17:58
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Start method for encoders

Last year there was a method called Start() in encoder.cpp that allowed us to start our encoders and begin to receive values. This year, the Start method is completely gone and doesn't show up on WPI's deprecated list. When we try and use the getter method for our encoders, nothing is being printed. We were wondering what is being used in replacement for the Start method in 2015. Thanks. We're using c++ by the way.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2015, 18:01
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Start method for encoders

Nothing. You do not need to explicitly start an encoder.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2015, 18:08
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Re: Start method for encoders

For some reason when we use a standard getter there is nothing being print out at all. Not even a zero. Do you know what this could be?
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2015, 18:19
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Start method for encoders

Quote:
Originally Posted by rawrpenguinlion View Post
For some reason when we use a standard getter there is nothing being print out at all. Not even a zero. Do you know what this could be?
The get() method returns an int, so this seems like an issue with the print statement. How are you trying to print? Is that code being called as expected?
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2015, 21:24
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Start method for encoders

Quote:
Originally Posted by rawrpenguinlion View Post
This year, the Start method is completely gone and doesn't show up on WPI's deprecated list.
Not sure what list you're looking at, but it is documented here: http://wpilib.screenstepslive.com/s/...e-2014-to-2015
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 07:49.

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


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