Move ppm related options into own struct
This allows to have the ppm related options in a union with a other module protocol specific options for the multi module.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//This file was auto-generated by generate_datacopy.py script on Fri Mar 25 14:17:31 2016. Do not edit this file!
|
||||
//This file was auto-generated by generate_datacopy.py script on Fri Mar 25 14:26:09 2016. Do not edit this file!
|
||||
|
||||
|
||||
|
||||
@@ -194,10 +194,7 @@ void copyModuleData(A * dest, B * src)
|
||||
dest->failsafeMode = src->failsafeMode;
|
||||
dest->invertedSerial = src->invertedSerial;
|
||||
memcpy(dest->failsafeChannels, src->failsafeChannels, sizeof(dest->failsafeChannels));
|
||||
dest->ppmDelay = src->ppmDelay;
|
||||
dest->ppmPulsePol = src->ppmPulsePol;
|
||||
dest->ppmOutputType = src->ppmOutputType;
|
||||
dest->ppmFrameLength = src->ppmFrameLength;
|
||||
copyModuleData_ppm(&dest->ppm, &src->ppm);
|
||||
}
|
||||
|
||||
template <class A, class B>
|
||||
@@ -338,3 +335,12 @@ void copyTelemetrySensor_custom(A * dest, B * src)
|
||||
dest->ratio = src->ratio;
|
||||
dest->offset = src->offset;
|
||||
}
|
||||
|
||||
template <class A, class B>
|
||||
void copyModuleData_ppm(A * dest, B * src)
|
||||
{
|
||||
dest->delay = src->delay;
|
||||
dest->pulsePol = src->pulsePol;
|
||||
dest->outputType = src->outputType;
|
||||
dest->frameLength = src->frameLength;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user