VR-Engage  2.3
Loading...
Searching...
No Matches
vreVrfRtd Library API Changes

This page covers RTD fuel synchronization in vreVrfRtd. Review custom fixed-wing and rotary-wing actuator subclasses.

Breaking changes

Rotary-wing fuel hook

vreRlActuator.h removes the protected virtual double DtVreRlActuator::calculateFuel() const hook. Replace subclass overrides with code that cooperates with void synchronizeFuel() and the configured VR-Forces fuel resource. The actuator also removes its protected myReverseCollective member; do not depend on it in derived code.

Additions

Shared RTD fuel synchronization

vreRtdUtil.h adds vreRtd::RtdFuelSynchronizer. It maps RTD's usable fuel percentage to a VR-Forces DtSimResource. synchronize(DtSimResource&, RTD::CGFVehicleBase&, bool fuelLevelsFrozen) detects external resource changes and applies them to RTD. reset(RTD::CGFVehicleBase&) clears synchronization state after control ends.

vreFwlActuator.h and vreRlActuator.h add protected synchronizeFuel(), updateFuelExtendedData(), and DtSimResource* fuelResource() methods. Their implementations synchronize fuel at control handoffs and on RTD-controlled ticks. When extending these actuators, retain those transitions and use the configured resource rather than a separate fuel counter.