Changeset 254 in flair-src for trunk/lib/FlairSensorActuator/src
- Timestamp:
- Jul 16, 2018, 3:36:47 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note:
See TracChangeset
for help on using the changeset viewer.