- Timestamp:
- Feb 15, 2018, 4:44:23 PM (7 years ago)
- Location:
- trunk/lib
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/CMakeLists.txt
r211 r216 23 23 ${LIBXML2_INCLUDE_DIR} 24 24 ${CMAKE_SYSROOT}/usr/include/opencv1 25 ${CMAKE_SYSROOT}/usr/include/opencv/ 25 26 ${CMAKE_SYSROOT}/usr/include/udt 26 27 ${CMAKE_CURRENT_SOURCE_DIR}/src -
trunk/lib/FlairCore/src/Unix_I2cPort.cpp
r133 r216 49 49 int err = ioctl(fd, I2C_SLAVE_FORCE, address); 50 50 if (err < 0) { 51 Err("Failed to set slave address \n");51 Err("Failed to set slave address (0x%x)\n",address); 52 52 } 53 53 -
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 /*! -
trunk/lib/FlairMeta/CMakeLists.txt
r211 r216 26 26 ${CMAKE_CURRENT_SOURCE_DIR}/src/ 27 27 ${CMAKE_SYSROOT}/usr/include/opencv1 28 ${CMAKE_SYSROOT}/usr/include/opencv 28 29 ) 29 30 -
trunk/lib/FlairMeta/src/UavStateMachine.cpp
r214 r216 90 90 uZ->AddDeviceToLog(uYaw); 91 91 92 93 92 joy=new MetaDualShock3("uav high level controller",controller); 93 uav->GetAhrs()->AddPlot(joy->GetReferenceOrientation(),DataPlot::Blue); 94 94 95 95 altitudeMode = AltitudeMode_t::Manual; … … 484 484 joy->SetZRef(0); 485 485 486 uZ->SetDefaultOffset(); // positionne l'offset de compensation de la gravité à sa 487 // valeur initiale (station sol) 486 uZ->Reset(); 487 uRoll->Reset(); 488 uPitch->Reset(); 489 uYaw->Reset(); 488 490 489 491 uav->GetUavMultiplex()->LockUserInterface(); … … 569 571 uav->GetAhrs()->UnlockUserInterface(); 570 572 571 uZ->SetValues(0, 0);572 573 uZ->Reset(); 574 uRoll->Reset(); 575 uPitch->Reset(); 576 uYaw->Reset(); 573 577 } 574 578 -
trunk/lib/FlairSensorActuator/CMakeLists.txt
r211 r216 25 25 ${CMAKE_CURRENT_SOURCE_DIR}/../FlairVisionFilter/src 26 26 ${CMAKE_SYSROOT}/usr/include/opencv1 27 ${CMAKE_SYSROOT}/usr/include/opencv 27 28 ${CMAKE_SYSROOT}/usr/include/vrpn 28 29 ) -
trunk/lib/FlairSensorActuator/src/NmeaGps.cpp
r214 r216 174 174 175 175 void NmeaGps::parseFrame(const char *frame, int frame_size) { 176 176 //avoid unrecognized nmea sentence (when no satelites 177 if(strncmp(frame,"$GNGGA,,",8)==0) return; 178 if(strncmp(frame,"$GNVTG,,",8)==0) return; 179 if(strstr(frame,",,,,,")!=NULL) return; 180 177 181 int result; 178 182 result = nmea_parse(&parser, frame, frame_size, &info); 179 180 183 if (result != 1) { 181 184 Warn("unrecognized nmea sentence: %s\n",frame); 182 185 return; 183 186 } 184 187 185 188 result = nmea_parse_GPGGA(frame, frame_size, &pack); 186 189 -
trunk/lib/FlairSensorActuator/src/PressureSensor.cpp
r215 r216 79 79 80 80 plot_tab = new Tab(tab, "Mesures"); 81 plot = new DataPlot1D(plot_tab->NewRow(), ObjectName(), 0, 2);81 plot = new DataPlot1D(plot_tab->NewRow(), ObjectName(), 101000, 101500); 82 82 plot->AddCurve(output->Element(0)); 83 83 } -
trunk/lib/FlairSensorActuator/src/PressureSensor.h
r215 r216 109 109 * \brief Value 110 110 * 111 * \return output value 111 * \return output value in pascal 112 112 */ 113 113 float Value(void) const; -
trunk/lib/FlairSimulator/CMakeLists.txt
r211 r216 26 26 ${CMAKE_SYSROOT}/usr/include/vrpn 27 27 ${CMAKE_SYSROOT}/usr/include/opencv1 28 ${CMAKE_SYSROOT}/usr/include/opencv 28 29 ${CMAKE_SYSROOT}/usr/include/irrlicht 29 30 ) -
trunk/lib/FlairVisionFilter/CMakeLists.txt
r211 r216 24 24 $ENV{FLAIR_ROOT}/flair-src/lib/FlairCore/src 25 25 ${CMAKE_SYSROOT}/usr/include/opencv1 26 ${CMAKE_SYSROOT}/usr/include/opencv 26 27 ) 27 28
Note:
See TracChangeset
for help on using the changeset viewer.