chore(dsmp): separate DSMP and DSM2, cleanup code, add DSMP status display and Enable AETR option (#6932)

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
Peter Feerick
2026-01-21 09:01:49 +10:00
parent 35f943e3f5
commit a7f2e619ca
69 changed files with 1056 additions and 360 deletions
@@ -259,6 +259,7 @@ Node convert<ModuleData>::encode(const ModuleData& rhs)
case PULSES_LEMON_DSMP: {
Node dsmp;
dsmp["flags"] = rhs.dsmp.flags;
dsmp["enableAETR"] = (int)rhs.dsmp.enableAETR;
mod["dsmp"] = dsmp;
} break;
case PULSES_FLYSKY_AFHDS2A: {
@@ -419,6 +420,7 @@ bool convert<ModuleData>::decode(const Node& node, ModuleData& rhs)
} else if (mod["dsmp"]) {
Node dsmp = mod["dsmp"];
dsmp["flags"] >> rhs.dsmp.flags;
dsmp["enableAETR"] >> rhs.dsmp.enableAETR;
} else if (mod["flysky"]) {
Node flysky = mod["flysky"];
for (int i = 0; i < 4; i++) {
+1
View File
@@ -213,6 +213,7 @@ class ModuleData {
struct DSMP {
unsigned int flags;
bool enableAETR;
} dsmp;
void clear();