mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-23 01:53:52 +08:00
dragonpilot beta3
date: 2023-08-22T14:21:17 commit: 6148ce3d77530281f890970718e9c42b2acc5ff1
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -256,6 +256,7 @@ enum class SafetyModel_95551e5b1edaf451: uint16_t {
|
||||
HONGQI,
|
||||
BODY,
|
||||
HYUNDAI_CANFD,
|
||||
VOLKSWAGEN_MQB_EVO,
|
||||
};
|
||||
CAPNP_DECLARE_ENUM(SafetyModel, 95551e5b1edaf451);
|
||||
CAPNP_DECLARE_SCHEMA(d661512be2def77f);
|
||||
@@ -2340,6 +2341,8 @@ public:
|
||||
|
||||
inline bool getExperimentalLongitudinalAvailable() const;
|
||||
|
||||
inline float getTireStiffnessFactor() const;
|
||||
|
||||
private:
|
||||
::capnp::_::StructReader _reader;
|
||||
template <typename, ::capnp::Kind>
|
||||
@@ -2633,6 +2636,9 @@ public:
|
||||
inline bool getExperimentalLongitudinalAvailable();
|
||||
inline void setExperimentalLongitudinalAvailable(bool value);
|
||||
|
||||
inline float getTireStiffnessFactor();
|
||||
inline void setTireStiffnessFactor(float value);
|
||||
|
||||
private:
|
||||
::capnp::_::StructBuilder _builder;
|
||||
template <typename, ::capnp::Kind>
|
||||
@@ -7137,6 +7143,20 @@ inline void CarParams::Builder::setExperimentalLongitudinalAvailable(bool value)
|
||||
::capnp::bounded<995>() * ::capnp::ELEMENTS, value);
|
||||
}
|
||||
|
||||
inline float CarParams::Reader::getTireStiffnessFactor() const {
|
||||
return _reader.getDataField<float>(
|
||||
::capnp::bounded<33>() * ::capnp::ELEMENTS);
|
||||
}
|
||||
|
||||
inline float CarParams::Builder::getTireStiffnessFactor() {
|
||||
return _builder.getDataField<float>(
|
||||
::capnp::bounded<33>() * ::capnp::ELEMENTS);
|
||||
}
|
||||
inline void CarParams::Builder::setTireStiffnessFactor(float value) {
|
||||
_builder.setDataField<float>(
|
||||
::capnp::bounded<33>() * ::capnp::ELEMENTS, value);
|
||||
}
|
||||
|
||||
inline ::cereal::CarParams::SafetyModel CarParams::SafetyConfig::Reader::getSafetyModel() const {
|
||||
return _reader.getDataField< ::cereal::CarParams::SafetyModel>(
|
||||
::capnp::bounded<0>() * ::capnp::ELEMENTS);
|
||||
|
||||
Reference in New Issue
Block a user