Skip to content

Commit

Permalink
AP_TemperatureSensor: specify units (degC) in comment for get_tempera…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
peterbarker authored and magicrub committed Sep 19, 2024
1 parent 7d907e9 commit fb5c337
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_TemperatureSensor/AP_TemperatureSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class AP_TemperatureSensor
// Update the temperature for all temperature sensors
void update();

// return temperature from sensor - in degrees Celsius
bool get_temperature(float &temp, const uint8_t instance = AP_TEMPERATURE_SENSOR_PRIMARY_INSTANCE) const;

bool healthy(const uint8_t instance = AP_TEMPERATURE_SENSOR_PRIMARY_INSTANCE) const;
Expand Down

0 comments on commit fb5c337

Please sign in to comment.