Changeset 206 in flair-src for trunk/lib/FlairFilter


Ignore:
Timestamp:
Jan 9, 2018, 11:43:37 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

m

Location:
trunk/lib/FlairFilter/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairFilter/src/PidThrust.cpp

    r157 r206  
    4343}
    4444
    45 void PidThrust::Reset(void) {
    46   pimpl_->i = 0;
    47   pimpl_->offset_g = 0;
    48 }
    49 
    5045void PidThrust::ResetI(void) { pimpl_->i = 0; }
    5146
     
    6257}
    6358
    64 void PidThrust::ResetOffset(void) { pimpl_->offset_g = 0; }
     59void PidThrust::SetDefaultOffset(void) { pimpl_->offset_g = pimpl_->offset->Value(); }
    6560
    66 void PidThrust::SetOffset(void) { pimpl_->offset_g = pimpl_->offset->Value(); }
     61void PidThrust::SetOffset(float value) { pimpl_->offset_g = value; }
    6762
    6863bool PidThrust::OffsetStepUp(void) {
  • trunk/lib/FlairFilter/src/PidThrust.h

    r15 r206  
    5555
    5656  /*!
    57   * \brief Reset integral and offset to 0
    58   *
    59   */
    60   void Reset(void);
    61 
    62   /*!
    6357  * \brief Reset integral to 0
    6458  *
     
    6761
    6862  /*!
    69   * \brief Reset offset to 0
     63  * \brief Set offset to a specified value
    7064  *
     65  * \param value desired value
    7166  */
    72   void ResetOffset(void);
    73 
     67  void SetOffset(float value);
     68 
    7469  /*!
    7570  * \brief Set offset to specified value in ground station
    7671  *
    7772  */
    78   void SetOffset(void);
     73  void SetDefaultOffset(void);
    7974
    8075  /*!
Note: See TracChangeset for help on using the changeset viewer.