1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

First release of new mission planner

All working for saving into FC.
Remaining bug on EPROM action
This commit is contained in:
ArnoTlse 2021-02-15 22:27:00 +01:00
parent 57d06ccc79
commit ea6ac3ec8f
3 changed files with 174 additions and 113 deletions

View file

@ -447,6 +447,8 @@ var mspHelper = (function (gui) {
MISSION_PLANER.bufferPoint.lon = data.getInt32(6, true) / 10000000;
MISSION_PLANER.bufferPoint.alt = data.getInt32(10, true);
MISSION_PLANER.bufferPoint.p1 = data.getInt16(14, true);
MISSION_PLANER.bufferPoint.p2 = data.getInt16(16, true);
MISSION_PLANER.bufferPoint.p3 = data.getInt16(18, true);
break;
case MSPCodes.MSP_BOXIDS:
@ -2085,10 +2087,10 @@ var mspHelper = (function (gui) {
buffer.push(specificByte(MISSION_PLANER.bufferPoint.alt, 3));
buffer.push(lowByte(MISSION_PLANER.bufferPoint.p1)); //sbufReadU16(src); // P1 speed or landing
buffer.push(highByte(MISSION_PLANER.bufferPoint.p1));
buffer.push(lowByte(0)); //sbufReadU16(src); // P2
buffer.push(highByte(0));
buffer.push(lowByte(0)); //sbufReadU16(src); // P3
buffer.push(highByte(0));
buffer.push(lowByte(MISSION_PLANER.bufferPoint.p2)); //sbufReadU16(src); // P2
buffer.push(highByte(MISSION_PLANER.bufferPoint.p2));
buffer.push(lowByte(MISSION_PLANER.bufferPoint.p3)); //sbufReadU16(src); // P3
buffer.push(highByte(MISSION_PLANER.bufferPoint.p3));
buffer.push(MISSION_PLANER.bufferPoint.endMission); //sbufReadU8(src); // future: to set nav flag
break;
case MSPCodes.MSP_WP: