Changeset 216 in flair-src for trunk/lib/FlairFilter
- Timestamp:
- Feb 15, 2018, 4:44:23 PM (7 years ago)
- Location:
- trunk/lib/FlairFilter
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/CMakeLists.txt
r211 r216 25 25 ${CMAKE_CURRENT_SOURCE_DIR}/src/ 26 26 ${CMAKE_SYSROOT}/usr/include/opencv1 27 ${CMAKE_SYSROOT}/usr/include/opencv 27 28 ${CMAKE_SYSROOT}/usr/include/iir 28 29 ) -
trunk/lib/FlairFilter/src/ControlLaw.h
r214 r216 88 88 * \brief Reset the internal state of the control law 89 89 * 90 * Does n't do anything by default90 * Does nothing by default 91 91 * 92 92 */ -
trunk/lib/FlairFilter/src/PidThrust.cpp
r214 r216 43 43 } 44 44 45 void PidThrust::Reset(void) { 46 ResetI(); 47 SetDefaultOffset(); 48 SetValues(0,0); 49 } 50 45 51 void PidThrust::ResetI(void) { pimpl_->i = 0; } 46 52 47 float PidThrust::GetOffset(void) { return pimpl_->offset_g; } 53 float PidThrust::GetOffset(void) const { return pimpl_->offset_g; } 54 55 float PidThrust::GetIntegral(void) const { return pimpl_->i; } 48 56 49 57 void PidThrust::UpdateFrom(const io_data *data) { -
trunk/lib/FlairFilter/src/PidThrust.h
r206 r216 55 55 56 56 /*! 57 * \brief Reset the control law 58 * equivalent to: 59 * ResetI(); 60 * SetDefaultOffset(); 61 * SetValues(0,0); 62 * 63 */ 64 void Reset(void); 65 66 /*! 57 67 * \brief Reset integral to 0 58 68 * … … 78 88 * \return current offset 79 89 */ 80 float GetOffset(void); 90 float GetOffset(void) const; 91 92 /*! 93 * \brief Get intergral part 94 * 95 * \return current integral part 96 */ 97 float GetIntegral(void) const; 81 98 82 99 /*!
Note:
See TracChangeset
for help on using the changeset viewer.