更新遥控器画面
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
M_d64 map(M_d64 x, M_d64 in_min, M_d64 in_max, M_d64 out_min, M_d64 out_max) {
|
||||
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
|
||||
}
|
||||
void Sleep(M_u16 msec){
|
||||
void Sleep_ms(M_u16 msec){
|
||||
QTime _Timer = QTime::currentTime().addMSecs(msec);
|
||||
while( QTime::currentTime() < _Timer )
|
||||
QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
double map(double x, double in_min, double in_max, double out_min, double out_max);
|
||||
void Sleep(uint16_t msec);
|
||||
void Sleep_ms(uint16_t msec);
|
||||
bool getBitOf32Data(uint32_t data, int bitIndex, bool defaultValue = false);
|
||||
bool setBitOf32Data(uint32_t &data, int bitIndex);
|
||||
bool clearBitOf32Data(uint32_t &data, int bitIndex);
|
||||
|
||||
Reference in New Issue
Block a user