Rover: log desired pitch in ATT message
This commit is contained in:
parent
9b60e0844b
commit
86634c2cca
@ -25,7 +25,8 @@ void Rover::Log_Write_Arm_Disarm()
|
||||
// Write an attitude packet
|
||||
void Rover::Log_Write_Attitude()
|
||||
{
|
||||
const Vector3f targets(0.0f, 0.0f, 0.0f); // Rover does not have attitude targets, use place-holder for commonality with Dataflash Log_Write_Attitude message
|
||||
float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f;
|
||||
const Vector3f targets(0.0f, desired_pitch_cd, 0.0f);
|
||||
|
||||
DataFlash.Log_Write_Attitude(ahrs, targets);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user