Skip to content
Snippets Groups Projects
Commit d6d5f0bb authored by Tobias's avatar Tobias Committed by Randy Mackay
Browse files

Copter: Log.pde: replace unused copy with ref (saves again some bytes)

parent e2c3ea0f
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ struct PACKED log_Nav_Tuning {
// Write an Nav Tuning packet
static void Log_Write_Nav_Tuning()
{
Vector3f velocity = inertial_nav.get_velocity();
const Vector3f &velocity = inertial_nav.get_velocity();
struct log_Nav_Tuning pkt = {
LOG_PACKET_HEADER_INIT(LOG_NAV_TUNING_MSG),
......@@ -525,7 +525,7 @@ struct PACKED log_INAV {
// Write an INAV packet
static void Log_Write_INAV()
{
Vector3f accel_corr = inertial_nav.accel_correction_ef;
const Vector3f &accel_corr = inertial_nav.accel_correction_ef;
struct log_INAV pkt = {
LOG_PACKET_HEADER_INIT(LOG_INAV_MSG),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment