mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AHRS_HIL: call update_trig
This commit is contained in:
parent
6946d68318
commit
98d667c916
@ -35,6 +35,9 @@ AP_AHRS_HIL::setHil(float _roll, float _pitch, float _yaw,
|
||||
yaw_sensor = ToDeg(yaw)*100;
|
||||
|
||||
_dcm_matrix.from_euler(roll, pitch, yaw);
|
||||
|
||||
// update trig values including _cos_roll, cos_pitch
|
||||
update_trig();
|
||||
}
|
||||
|
||||
// reset the current attitude, used by HIL
|
||||
|
Loading…
Reference in New Issue
Block a user