Skip to content

Add AirspeedFit#330

Open
robertlong13 wants to merge 1 commit into
ArduPilot:mainfrom
robertlong13:pr/airspeedfit
Open

Add AirspeedFit#330
robertlong13 wants to merge 1 commit into
ArduPilot:mainfrom
robertlong13:pr/airspeedfit

Conversation

@robertlong13

Copy link
Copy Markdown

Log-based airspeed calibration tool, inspired by the built-in autocal.

I've been testing this out for about a week and it's working great.

@IamPete1 IamPete1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what Claude thinks:

Image

I'll leave you to decide how much you care about those issues. I have had a play about and I have not been able to get it to break, and its in dev, so I'm inclined to just merge it.

I thought there was a python script for this somewhere, but I have looked in AP and in pyMAVLink and I can't find it. I was just thinking to run the same log and make sure the result is similar to this.

return isFinite(v) ? v : null
}

// Carbonix-specific behaviour, sneaked harmlessly into upstream: our GCS sends

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have spotted the sneaking, but as the comment says, I think its harmless.

// UTC Date for a log timestamp (seconds), from the GPS week/millisecond of the
// first 3D fix (matching JsDataflashParser's own conversion). Returns null if the
// log has no usable GPS time.
function gps_utc_at(log, t_seconds) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just be able to do log.extractStartTime() to get it in a JS date object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants