mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Fix const error
This commit is contained in:
parent
eea6b59973
commit
5ccfa74c72
@ -355,7 +355,7 @@ public:
|
||||
template<size_t P, size_t Q>
|
||||
Matrix<Type, P, Q> slice(size_t x0, size_t y0) const
|
||||
{
|
||||
Matrix<Type, M, N> &self = *this;
|
||||
const Matrix<Type, M, N> &self = *this;
|
||||
Matrix<Type, P, Q> res; //default constructed
|
||||
for (size_t i = 0; i < P; i++) {
|
||||
for (size_t j = 0; j < Q; j++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user