Ignore:
Timestamp:
11/28/19 17:08:04 (4 years ago)
Author:
Sanahuja Guillaume
Message:

add servos

File:
1 edited

Legend:

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

    r254 r340  
    8484}
    8585
    86 Bldc_impl::Bldc_impl(Bldc *self, uint8_t motors_count) {
    87   this->self = self;
    88   this->motors_count = motors_count;
    89   values = NULL;
    90   button_test = NULL;
    91   power = NULL;
    92 }
    93 
    9486Bldc_impl::~Bldc_impl() {
    9587  if (values != NULL)
     
    124116  for (int i = 0; i < motors_count; i++) {
    125117    if (are_enabled) {
    126       // Printf("%i %f %f\n",i,input->ValueNoMutex(i,0),power[i]);
     118      //Printf("%i %f %f\n",i,input->ValueNoMutex(i,0),power[i]);
    127119      values[i] = power[i] * Sat(input->ValueNoMutex(i, 0));
    128120      // Printf("%i %f\n",i,values[i]);
Note: See TracChangeset for help on using the changeset viewer.