Changeset 254 in flair-src for trunk/lib/FlairSensorActuator/src


Ignore:
Timestamp:
07/16/18 15:36:47 (6 years ago)
Author:
Sanahuja Guillaume
Message:

change watchdog timeout with gcs
remove unnecessary messages on bldc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/Bldc_impl.cpp

    r214 r254  
    123123  input->GetMutex();
    124124  for (int i = 0; i < motors_count; i++) {
    125     if (input->ValueNoMutex(i, 0) != 0)
    126       is_motor_running = true;
    127125    if (are_enabled) {
    128126      // Printf("%i %f %f\n",i,input->ValueNoMutex(i,0),power[i]);
     
    132130      values[i] = 0;
    133131    }
     132    if(values[i] != 0) is_motor_running = true;
    134133  }
    135134  input->ReleaseMutex();
Note: See TracChangeset for help on using the changeset viewer.