mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
* locationd at 20hz
* update ref
* bump cereal
* dont modify global state
* add scons files
* ecef2geodetic and geodetic2ecef
* Finish local coords class
* Add header file
* Add orientation.cc
* cleanup
* Add functions to header file
* Add cython wrapper
* y u no work?
* This passes the tests
* test rot2quat and quat2rot
* Teste euler2rot and rot2euler
* rot_matrix
* test ecef_euler_from_ned and ned_euler_from_ecef
* add benchmark
* Add test
* Consistent newlines
* no more radians supported in geodetic
* test localcoord single
* test localcoord single
* all tests pass
* Unused import
* Add alternate namings
* Add source for formulas
* no explicit tests needed
* remove benchmark
* Add release files
* Typo
* Remove print statement
* no access to raw transform matrix
* temporarily add tolerance
* handcode quat2euler
* update ref
old-commit-hash: c18e7da3c2
20 lines
843 B
Python
20 lines
843 B
Python
# pylint: skip-file
|
|
from common.transformations.orientation import numpy_wrap
|
|
from common.transformations.transformations import (ecef2geodetic_single,
|
|
geodetic2ecef_single)
|
|
from common.transformations.transformations import LocalCoord as LocalCoord_single
|
|
|
|
|
|
class LocalCoord(LocalCoord_single):
|
|
ecef2ned = numpy_wrap(LocalCoord_single.ecef2ned_single, (3,), (3,))
|
|
ned2ecef = numpy_wrap(LocalCoord_single.ned2ecef_single, (3,), (3,))
|
|
geodetic2ned = numpy_wrap(LocalCoord_single.geodetic2ned_single, (3,), (3,))
|
|
ned2geodetic = numpy_wrap(LocalCoord_single.ned2geodetic_single, (3,), (3,))
|
|
|
|
|
|
geodetic2ecef = numpy_wrap(geodetic2ecef_single, (3,), (3,))
|
|
ecef2geodetic = numpy_wrap(ecef2geodetic_single, (3,), (3,))
|
|
|
|
geodetic_from_ecef = ecef2geodetic
|
|
ecef_from_geodetic = geodetic2ecef
|