|
|
|
@ -1686,28 +1686,29 @@ const char* Copter::get_sysid_board_id(void)
@@ -1686,28 +1686,29 @@ const char* Copter::get_sysid_board_id(void)
|
|
|
|
|
switch (type) |
|
|
|
|
{ |
|
|
|
|
case 0: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: RS100%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: D100%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: M660%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: RS100%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: M610%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: M660%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
break; |
|
|
|
|
case 3: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: M610%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
break; |
|
|
|
|
case 4: |
|
|
|
|
// snprintf(buf, sizeof(buf), "Version: FL-v4.0.10 ,Board ID: ZRZK.20QT2.%d",(int)nameValue2);
|
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,Board ID: ZRZK.%5s.%03d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,name,(int)g.sysid_board_id); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
case 4: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,Board ID: ZRZK.19QT2.%d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue2); |
|
|
|
|
break; |
|
|
|
|
case 5: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,Board ID: %04d%04d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
break; |
|
|
|
|
case 6: |
|
|
|
|
snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,ID: D100%04d%05d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2); |
|
|
|
|
break; |
|
|
|
|
// case 4:
|
|
|
|
|
// snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,Board ID: ZRZK.19QT2.%d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue2);
|
|
|
|
|
// break;
|
|
|
|
|
// case 5:
|
|
|
|
|
// snprintf(buf, sizeof(buf), "Version: FL-v%u.%u.%u ,Board ID: %04d%04d",AP::fwversion().major,AP::fwversion().minor,AP::fwversion().patch,(int)nameValue1,(int)nameValue2);
|
|
|
|
|
// break;
|
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|