//*****************************************************************************
// (C) Automotive Lighting Reutlingen GmbH
// Tuebinger Strasse 123, 72762 Reutlingen, Germany
//
// Automotive Lighting Reutlingen GmbH owns all the rights to this work.
// This work shall not be copied, reproduced, used, modified, transferred
// or its information shall not be disclosed without the prior written
// authorization of Automotive Lighting Reutlingen GmbH.
//*****************************************************************************
//-----------------------------------------------------------------------------
/// \file Avac.c
///
/// \brief
///
/// \descr
///
/// Additional information can be found in the design description (Link:
/// MDDD)
///
/// \author Alf Traulsen (taf2rt)
/// mailTo:alf.traulsen@al-lighting.com
//-----------------------------------------------------------------------------
//=============================================================================
// includes
//=============================================================================
#include
#include
#include
#include
#include
//-----------------------------------------------------------------------------
/// \func Avac_ParaChanged()
///
/// \brief Avac coding parameters changed
///
/// \param -
///
/// \return void
//-----------------------------------------------------------------------------
void Avac_ParaChanged(void)
{
if (AvacData_GetCodingValid())
{
AvacData_Init();
AvacVdd_Init();
AvacAlg_Init();
}
}
//-----------------------------------------------------------------------------
/// \brief Avac_Init
///
/// \descr initialize avac
///
/// \param -
///
/// \return void
//-----------------------------------------------------------------------------
void Rte_riAvacInit(void)
{
if (AvacData_GetCodingValid())
{
AvacData_Init();
AvacVdd_Init();
AvacAlg_Init();
}
}
// ---------------------------------------------------------------------------
///
/// \func Avac_Cycle0
///
/// \brief cyclic function called every 20ms
///
/// \param none
///
/// \return none
///
// ---------------------------------------------------------------------------
void Rte_rpAvac20ms(void)
{
if (AvacData_GetCodingValid())
{
Avac_GetInput();
AvacVdd_DetectStreetQuality();
AvacAlg_Add_Main();
AvacVdd_DetectVehicleDynamic();
AvacAlg_Main();
}
}