- Timestamp:
- Jul 16, 2018, 3:36:47 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/FrameworkManager.h
r213 r254 77 77 * \param rcv_buf_size receive buffer size 78 78 */ 79 void SetupConnection(std::string address, uint16_t port,Time watchdogTimeout=(Time)1 000000000,79 void SetupConnection(std::string address, uint16_t port,Time watchdogTimeout=(Time)1500000000, 80 80 size_t rcv_buf_size = 10000); 81 81 -
trunk/lib/FlairCore/src/FrameworkManager_impl.cpp
r243 r254 139 139 } 140 140 141 void FrameworkManager_impl:: ConnectionLost(void) {141 void FrameworkManager_impl::SetConnectionLost(void) { 142 142 Err("connection lost\n"); 143 143 if(gcs_watchdog!=NULL) gcs_watchdog->SafeStop(); … … 241 241 // watchdog for connection with ground station 242 242 connection_lost = false; 243 gcs_watchdog = new Watchdog(this, std::bind(&FrameworkManager_impl:: ConnectionLost, this),watchdogTimeout);243 gcs_watchdog = new Watchdog(this, std::bind(&FrameworkManager_impl::SetConnectionLost, this),watchdogTimeout); 244 244 gcs_watchdog->Start(); 245 245 } -
trunk/lib/FlairCore/src/unexported/FrameworkManager_impl.h
r234 r254 125 125 std::vector<std::string> xml_changes; 126 126 flair::core::Watchdog *gcs_watchdog; 127 void ConnectionLost(void);127 void SetConnectionLost(void); 128 128 }; 129 129 -
trunk/lib/FlairSensorActuator/src/Bldc_impl.cpp
r214 r254 123 123 input->GetMutex(); 124 124 for (int i = 0; i < motors_count; i++) { 125 if (input->ValueNoMutex(i, 0) != 0)126 is_motor_running = true;127 125 if (are_enabled) { 128 126 // Printf("%i %f %f\n",i,input->ValueNoMutex(i,0),power[i]); … … 132 130 values[i] = 0; 133 131 } 132 if(values[i] != 0) is_motor_running = true; 134 133 } 135 134 input->ReleaseMutex(); -
trunk/tools/FlairGCS/src/UdtSocket.cpp
r253 r254 67 67 void UdtSocket::heartbeat(void) { 68 68 char data = WATCHDOG_HEADER; 69 quint64 sent=write(&data, 1,HEARTBEAT_TIMER, false);69 quint64 sent=write(&data, 1,HEARTBEAT_TIMER,true); 70 70 if (sent != 1 && UDT::getlasterror().getErrorCode() == 2001) { 71 71 heartbeat_timer->stop();
Note:
See TracChangeset
for help on using the changeset viewer.