Skip to content

Commit

Permalink
Plane: log speed scaler into AETR
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 29, 2020
1 parent 084ec2b commit 75aa8b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ArduPlane/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ struct PACKED log_AETR {
int16_t throttle;
int16_t rudder;
int16_t flap;
float speed_scaler;
};

void Plane::Log_Write_AETR()
Expand All @@ -239,6 +240,7 @@ void Plane::Log_Write_AETR()
,throttle : SRV_Channels::get_output_scaled(SRV_Channel::k_throttle)
,rudder : SRV_Channels::get_output_scaled(SRV_Channel::k_rudder)
,flap : SRV_Channels::get_output_scaled(SRV_Channel::k_flap_auto)
,speed_scaler : get_speed_scaler(),
};

logger.WriteBlock(&pkt, sizeof(pkt));
Expand Down Expand Up @@ -426,8 +428,9 @@ const struct LogStructure Plane::log_structure[] = {
// @Field: Thr: Pre-mixer value for throttle output (between -4500 to 4500)
// @Field: Rudd: Pre-mixer value for rudder output (between -4500 to 4500)
// @Field: Flap: Pre-mixer value for flaps output (between -4500 to 4500)
// @Field: SS: Surface movement / airspeed scaling value
{ LOG_AETR_MSG, sizeof(log_AETR),
"AETR", "Qhhhhh", "TimeUS,Ail,Elev,Thr,Rudd,Flap", "s-----", "F-----" },
"AETR", "Qhhhhhf", "TimeUS,Ail,Elev,Thr,Rudd,Flap,SS", "s------", "F------" },

// @LoggerMessage: OFG
// @Description: OFfboard-Guided - an advanced version of GUIDED for companion computers that includes rate/s.
Expand Down

0 comments on commit 75aa8b7

Please sign in to comment.