AP_TemperatureSensor: Add support for MCP9808 I2C temperature sensor - #33746
Open
lavleshpoyrekar wants to merge 20 commits into
Open
AP_TemperatureSensor: Add support for MCP9808 I2C temperature sensor#33746lavleshpoyrekar wants to merge 20 commits into
lavleshpoyrekar wants to merge 20 commits into
Conversation
added 9 commits
July 16, 2026 19:07
lavleshpoyrekar
force-pushed
the
ap-temp-mcp9808
branch
from
July 16, 2026 16:57
097719f to
ed332cf
Compare
peterbarker
requested changes
Jul 17, 2026
peterbarker
left a comment
Contributor
There was a problem hiding this comment.
Requires a simulator + addition to autotest
Spaces after commas.
Add trailing newlines to files.
Needs an entry in build_options.py
Pretty solid!
lavleshpoyrekar
force-pushed
the
ap-temp-mcp9808
branch
from
July 20, 2026 18:04
f489c91 to
b37bca7
Compare
lavleshpoyrekar
force-pushed
the
ap-temp-mcp9808
branch
from
July 20, 2026 18:11
b37bca7 to
7e48b06
Compare
lavleshpoyrekar
force-pushed
the
ap-temp-mcp9808
branch
from
July 25, 2026 12:19
0c2c925 to
2a48edd
Compare
lavleshpoyrekar
force-pushed
the
ap-temp-mcp9808
branch
from
July 25, 2026 16:07
8dc8e05 to
f9d28ee
Compare
Author
|
@peterbarker . I've addressed the requested changes:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add MCP9808 temperature sensor support to AP_TemperatureSensor.
The driver provides I2C communication, device detection, temperature reading, and integration with ArduPilot temperature sensor framework.
Classification & Testing (check all that apply and add your own)
Testing performed:
Description
This PR adds support for the MCP9808 digital temperature sensor in the AP_TemperatureSensor library.
Changes include:
Log Link
https://drive.google.com/file/d/1lO0TRcomo0k0ZZJ5mHk8dpHhfN6aIto6/view?usp=sharing
The implementation was tested on real hardware with MCP9808 sensors connected over I2C and verified using MAVLink logs.
