Changeset 97:e8d0201aa2ca in rrlib_localization


Ignore:
Timestamp:
13.10.2020 13:45:58 (9 days ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds rrlib_rtti conversion operations for more convenient and direct access to tIMUData components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtti.cpp

    r95 r97  
    153153} 
    154154 
     155static tIMUData<> cIMU_DATA; 
     156static tMemberAccessOperations3D cIMU_DATA_OPERATIONS(rrlib::rtti::tDataType<tIMUData<>>(), rrlib::rtti::tDataType<typename std::tuple_element<0, tIMUData<>>::type>(), rrlib::rtti::tDataType<typename std::tuple_element<1, tIMUData<>>::type>(), 
     157    rrlib::rtti::tDataType<typename std::tuple_element<1, tIMUData<>>::type::tComponent<>>(), reinterpret_cast<char*>(&std::get<0>(cIMU_DATA)) - reinterpret_cast<char*>(&cIMU_DATA), reinterpret_cast<char*>(&std::get<1>(cIMU_DATA)) - reinterpret_cast<char*>(&cIMU_DATA)); 
     158 
    155159} 
    156160} 
Note: See TracChangeset for help on using the changeset viewer.