Skip to content

Commit

Permalink
Update flightlog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
breadoven committed May 21, 2024
1 parent e23c6bb commit 41a9a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/flightlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
function FlightLog(logData) {
var
ADDITIONAL_COMPUTED_FIELD_COUNT = 9, /** attitude + PID_SUM + PID_ERROR + VELOCITY + WIND_VELOCITY + WIND_HEADING **/
ADDITIONAL_COMPUTED_FIELD_COUNT = 10, /** attitude + PID_SUM + PID_ERROR + VELOCITY + WIND_VELOCITY + WIND_HEADING + HOME DISTANCE**/

that = this,
logIndex = false,
Expand Down Expand Up @@ -380,7 +380,7 @@ function FlightLog(logData) {
case 'P':
case 'I':
//The parser re-uses the "frame" array so we must copy that data somewhere else
var numOutputFields = frame.length + slowFrameLength + ADDITIONAL_COMPUTED_FIELD_COUNT + gpsFrameLength;
var numOutputFields = frame.length + slowFrameLength + gpsFrameLength + ADDITIONAL_COMPUTED_FIELD_COUNT ;

//Do we have a recycled chunk to copy on top of?
if (chunk.frames[mainFrameIndex]) {
Expand Down

0 comments on commit 41a9a26

Please sign in to comment.