mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
* modeld: Retain pre-20hz drive model support * Method not available anymore on OP * some fixes * Revert "Long planner get accel: new function args (#34288)" * Revert "Fix low-speed allow_throttle behavior in long planner (#33894)" * Revert "long planner: allow throttle reflects usage (#33792)" * Revert "Gate acceleration on model gas press predictions (#33643)" * Reapply "Gate acceleration on model gas press predictions (#33643)" This reverts commit76b08e37cb. * Reapply "long planner: allow throttle reflects usage (#33792)" This reverts commitc75244ca4e. * Reapply "Fix low-speed allow_throttle behavior in long planner (#33894)" This reverts commitb2b7d21b7b. * Reapply "Long planner get accel: new function args (#34288)" This reverts commit74dca2fccf. * don't need * retain snpe * wrong * they're symlinks * remove * put back into VCS * add back * don't include built * Refactor model runner retrieval with caching support Added caching for active model runner type via `ModelRunnerTypeCache` to enhance performance and avoid redundant checks. Introduced a `force_check` flag to bypass the cache when necessary. Updated related code to handle cache clearing during onroad transitions. * Update model runner determination logic with caching fix Enhances `get_active_model_runner` to utilize caching more effectively by ensuring type consistency and updating cache only when necessary. Also updates `is_snpe_model` to pass the `started` state to the runner determination function, improving behavior for dynamic checks. * default to none * enable in next PR * more --------- Co-authored-by: DevTekVE <devtekve@gmail.com>
79 lines
2.0 KiB
C++
79 lines
2.0 KiB
C++
//==============================================================================
|
|
//
|
|
// Copyright (c) 2014-2015 Qualcomm Technologies, Inc.
|
|
// All Rights Reserved.
|
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
|
//
|
|
//==============================================================================
|
|
|
|
|
|
#ifndef _DL_VERSION_HPP_
|
|
#define _DL_VERSION_HPP_
|
|
|
|
#include "ZdlExportDefine.hpp"
|
|
#include <stdint.h>
|
|
#include <string>
|
|
#include "DlSystem/String.hpp"
|
|
|
|
|
|
namespace zdl {
|
|
namespace DlSystem
|
|
{
|
|
class Version_t;
|
|
}}
|
|
|
|
|
|
namespace zdl { namespace DlSystem
|
|
{
|
|
/** @addtogroup c_plus_plus_apis C++
|
|
@{ */
|
|
|
|
/**
|
|
* A class that contains the different portions of a version number.
|
|
*/
|
|
class ZDL_EXPORT Version_t
|
|
{
|
|
public:
|
|
/// Holds the major version number. Changes in this value indicate
|
|
/// major changes that break backward compatibility.
|
|
int32_t Major;
|
|
|
|
/// Holds the minor version number. Changes in this value indicate
|
|
/// minor changes made to library that are backwards compatible
|
|
/// (such as additions to the interface).
|
|
int32_t Minor;
|
|
|
|
/// Holds the teeny version number. Changes in this value indicate
|
|
/// changes such as bug fixes and patches made to the library that
|
|
/// do not affect the interface.
|
|
int32_t Teeny;
|
|
|
|
/// This string holds information about the build version.
|
|
///
|
|
std::string Build;
|
|
|
|
static zdl::DlSystem::Version_t fromString(const std::string &stringValue);
|
|
|
|
static zdl::DlSystem::Version_t fromString(const zdl::DlSystem::String &stringValue);
|
|
|
|
/**
|
|
* @brief Returns a string in the form Major.Minor.Teeny.Build
|
|
*
|
|
* @return A formatted string holding the version information.
|
|
*/
|
|
const std::string toString() const;
|
|
|
|
/**
|
|
* @brief Returns a string in the form Major.Minor.Teeny.Build
|
|
*
|
|
* @return A formatted string holding the version information.
|
|
*/
|
|
const zdl::DlSystem::String asString() const;
|
|
};
|
|
|
|
}}
|
|
|
|
/** @} */ /* end_addtogroup c_plus_plus_apis */
|
|
|
|
#endif
|