![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Six crescent shaped legs
Embed:
(wiki syntax)
Show/hide line numbers
SyncGroup.cpp
00001 #include "SyncGroup.hpp" 00002 #include "Math.hpp" 00003 00004 float SyncGroup::update(EncoderMotor *motor, float factor) 00005 { 00006 factors[motor] = factor; 00007 return getMinimum(motor); 00008 } 00009 00010 float SyncGroup::getMinimum(EncoderMotor *exclude) 00011 { 00012 float factor = 1.f; 00013 for (std::map<EncoderMotor*, float>::iterator it = factors.begin(); it != factors.end(); ++it) 00014 { 00015 if (it->first != exclude) 00016 factor = ::min(factor, it->second); 00017 } 00018 return factor; 00019 }
Generated on Thu Jul 14 2022 23:15:59 by
![doxygen](doxygen.png)