Files
openvehicle-api/examples/auto_headlamp_example/autoheadlight_service/autoheadlight_cs_ifc.idl
tompzf 6ed4b1534e Precommit (#1)
* first commit

* cleanup
2025-11-04 13:28:06 +01:00

43 lines
1.3 KiB
Plaintext

/*******************************************************************************
* @file AutoHeadlight.idl
* @details Auto Headlight example service interface definition.
*/
/**
* @brief AutoHeadlight example service interface. The interface provides functions for the
* Auto Headlight example complex service.
*/
interface IAutoheadlightService
{
/**
* @brief Tunnel Bounding box Coordinates struct.
*/
struct SGPSBoundBox
{
float fTunnelMinLat = 0.0; ///< Minimum latitude value of bounding box
float fTunnelMinLon = 0.0; ///< Minimum longitude value of bounding box
float fTunnelMaxLat = 0.0; ///< Maximum latitude value of bounding box
float fTunnelMaxLon = 0.0; ///< Maximum longitude value of bounding box
};
/**
* @brief Gets status of vehicle position if it is inside tunnel or not
* @return Returns true if position of vehicle is inside tunnel and false if outside.
*/
boolean IsinTunnel() const;
/**
* @brief Get status of headlights
* @return Returns the status of headlights (true if switched on , false if not switched on)
*/
boolean GetHeadlightStatus() const;
/**
* @brief Get the GPS bounding box
* @return Returns the bounding box structure
*/
SGPSBoundBox GetGPSBoundBox() const;
};