- Timestamp:
- Mar 21, 2019, 11:30:17 AM (6 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/FrameworkManager_impl.cpp
r290 r313 152 152 SafeStop(); 153 153 Join(); 154 155 if(gcs_watchdog!=NULL) gcs_watchdog->SafeStop(); 154 156 155 157 if (rcv_buf != NULL) -
trunk/lib/FlairCore/src/Thread.cpp
r307 r313 127 127 //usleep(time); 128 128 struct timespec req; 129 req.tv_sec = (Time)time / (Time)1000 ;130 req.tv_nsec = ( Time)time%(Time)1000;129 req.tv_sec = (Time)time / (Time)1000000; 130 req.tv_nsec = ((Time)time%(Time)1000000)*((Time)1000); 131 131 struct timespec rem; 132 132 if(nanosleep(&req,&rem)!=0) Err("error in nanosleep\n");//todo, handle EINTR -
trunk/lib/FlairMeta/src/UavStateMachine.cpp
r310 r313 124 124 } 125 125 126 const TargetController *UavStateMachine::Get Joystick(void) const {126 const TargetController *UavStateMachine::GetTargetController(void) const { 127 127 return controller; 128 } 129 130 MetaDualShock3 *UavStateMachine::GetJoystick(void) const { 131 return joy; 128 132 } 129 133 -
trunk/lib/FlairMeta/src/UavStateMachine.h
r206 r313 226 226 void AddDataToControlLawLog(const core::io_data *data); 227 227 228 const sensor::TargetController *Get Joystick(void) const;229 MetaDualShock3 * joy;228 const sensor::TargetController *GetTargetController(void) const; 229 MetaDualShock3 *GetJoystick(void) const; 230 230 231 231 filter::NestedSat *GetURoll(void); … … 269 269 bool IsValuePossible(float value,std::string desc); 270 270 271 meta::Uav *uav; 271 Uav *uav; 272 MetaDualShock3 *joy; 272 273 sensor::TargetController *controller; 273 274
Note:
See TracChangeset
for help on using the changeset viewer.