Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
updated mavlink to larger baro datatype that doesn't overlow
Browse files Browse the repository at this point in the history
  • Loading branch information
superjax committed Sep 16, 2016
1 parent 6f56469 commit 00c487e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mavlink/v1.0
Submodule v1.0 updated from b0c67c to b94d73
4 changes: 2 additions & 2 deletions src/mavrosflight/sensors/baro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Baro::Baro()

bool Baro::correct(mavlink_small_baro_t baro, double *alt)
{
double pressure = baro.pressure;
double temperature = baro.temperature;
double pressure = (double)baro.pressure;
double temperature = (double)baro.temperature;

if( calibration_counter_ > calibration_count_ + settling_count_)
{
Expand Down

0 comments on commit 00c487e

Please sign in to comment.