Documentation
¶
Index ¶
- type AHRS
- type MadgwickAHRS
- func (m *MadgwickAHRS) Acceleration() vec.Vector
- func (m *MadgwickAHRS) Calculate() AHRS
- func (m *MadgwickAHRS) Gyroscope() vec.Vector
- func (m *MadgwickAHRS) Magnetometer() vec.Vector
- func (m *MadgwickAHRS) Orientation() vec.Vector
- func (m *MadgwickAHRS) Reset() AHRS
- func (m *MadgwickAHRS) Update(samplePeriod float32) AHRS
- type MahonyAHRS
- func (m *MahonyAHRS) Acceleration() vec.Vector
- func (m *MahonyAHRS) Calculate() AHRS
- func (m *MahonyAHRS) Gyroscope() vec.Vector
- func (m *MahonyAHRS) Magnetometer() vec.Vector
- func (m *MahonyAHRS) Orientation() vec.Vector
- func (m *MahonyAHRS) Reset() AHRS
- func (m *MahonyAHRS) Update(samplePeriod float32) AHRS
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AHRS ¶
type AHRS interface { Acceleration() vec.Vector Gyroscope() vec.Vector Magnetometer() vec.Vector Orientation() vec.Vector Reset() AHRS Update(samplePeriod float32) AHRS Calculate() AHRS }
func NewMadgwick ¶
type MadgwickAHRS ¶
func (*MadgwickAHRS) Acceleration ¶
func (m *MadgwickAHRS) Acceleration() vec.Vector
func (*MadgwickAHRS) Calculate ¶
func (m *MadgwickAHRS) Calculate() AHRS
func (*MadgwickAHRS) Gyroscope ¶
func (m *MadgwickAHRS) Gyroscope() vec.Vector
func (*MadgwickAHRS) Magnetometer ¶
func (m *MadgwickAHRS) Magnetometer() vec.Vector
func (*MadgwickAHRS) Orientation ¶
func (m *MadgwickAHRS) Orientation() vec.Vector
func (*MadgwickAHRS) Reset ¶
func (m *MadgwickAHRS) Reset() AHRS
func (*MadgwickAHRS) Update ¶
func (m *MadgwickAHRS) Update(samplePeriod float32) AHRS
type MahonyAHRS ¶
func (*MahonyAHRS) Acceleration ¶
func (m *MahonyAHRS) Acceleration() vec.Vector
func (*MahonyAHRS) Calculate ¶
func (m *MahonyAHRS) Calculate() AHRS
func (*MahonyAHRS) Gyroscope ¶
func (m *MahonyAHRS) Gyroscope() vec.Vector
func (*MahonyAHRS) Magnetometer ¶
func (m *MahonyAHRS) Magnetometer() vec.Vector
func (*MahonyAHRS) Orientation ¶
func (m *MahonyAHRS) Orientation() vec.Vector
func (*MahonyAHRS) Reset ¶
func (m *MahonyAHRS) Reset() AHRS
func (*MahonyAHRS) Update ¶
func (m *MahonyAHRS) Update(samplePeriod float32) AHRS
type Option ¶
type Option func(cfg *Options)
func WithAccelerator ¶
func WithGyroscope ¶
func WithMagnetometer ¶
Click to show internal directories.
Click to hide internal directories.