Skip to content

Commit

Permalink
TC WIP: Adding distance thresholds and handling default process data
Browse files Browse the repository at this point in the history
  • Loading branch information
ad3154 committed Jul 27, 2024
1 parent c44ce96 commit e7a51b2
Show file tree
Hide file tree
Showing 6 changed files with 645 additions and 104 deletions.
11 changes: 11 additions & 0 deletions examples/seeder_example/section_control_implement_sim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ class SectionControlImplementSimulator
CountPerAreaPresentation ///< Describes to the TC how to display volume per area units
};

/// @brief Enumerates the elements in the DDOP for easier reference in the application
enum class ImplementDDOPElementNumbers : std::uint16_t
{
DeviceElement = 0,
ConnectorElement = 1,
BoomElement = 2,
BinElement = 3,
Section1Element = 4,
SectionMaxElement = Section1Element + (MAX_NUMBER_SECTIONS_SUPPORTED - 1)
};

/// @brief Constructor for the simulator
/// @param[in] value The number of sections to track for section control
explicit SectionControlImplementSimulator(std::uint8_t value);
Expand Down
2 changes: 2 additions & 0 deletions examples/seeder_example/vt_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ void SeederVtApplication::handle_vt_key_events(const isobus::VirtualTerminalClie
{
update_section_objects(i);
}
TCClientInterface.on_value_changed_trigger(static_cast<std::uint16_t>(SectionControlImplementSimulator::ImplementDDOPElementNumbers::BoomElement),
static_cast<std::uint16_t>(isobus::DataDescriptionIndex::RequestDefaultProcessData));
}
break;

Expand Down
Loading

0 comments on commit e7a51b2

Please sign in to comment.