Skip to content

Commit

Permalink
Update FreeVario.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaubart committed May 25, 2024
1 parent d777ec1 commit 6b61dbf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Device/Driver/FreeVario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,19 +267,6 @@ FreeVarioDevice::OnSensorUpdate(const MoreData &basic)
sprintf(nmeaOutbuffer,"PFV,VAN,%f", basic.netto_vario);
PortWriteNMEA(port, nmeaOutbuffer, env);
// }
}

/*
* Always send the calculated updated values to the FreeVario to have a good
* refresh rate on the external device
*/
void
FreeVarioDevice::OnCalculatedUpdate(const MoreData &basic,
const DerivedInfo &calculated)
{
NullOperationEnvironment env;

char nmeaOutbuffer[80];

if (!basic.external_instantaneous_wind_available.IsValid() && calculated.wind.IsNonZero() && basic.track_available){
const Angle relWindDirection = (calculated.wind.bearing - Angle::HalfCircle() - basic.track).AsBearing();
Expand Down

0 comments on commit 6b61dbf

Please sign in to comment.