Changeset 340 in flair-src for trunk/lib/FlairSensorActuator/src/Bldc_impl.cpp
- Timestamp:
- Nov 28, 2019, 5:08:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/Bldc_impl.cpp
r254 r340 84 84 } 85 85 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 94 86 Bldc_impl::~Bldc_impl() { 95 87 if (values != NULL) … … 124 116 for (int i = 0; i < motors_count; i++) { 125 117 if (are_enabled) { 126 // 118 //Printf("%i %f %f\n",i,input->ValueNoMutex(i,0),power[i]); 127 119 values[i] = power[i] * Sat(input->ValueNoMutex(i, 0)); 128 120 // Printf("%i %f\n",i,values[i]);
Note:
See TracChangeset
for help on using the changeset viewer.