From fe85841a1d4fcd3cf24f1136c47b3e6919f4a698 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 25 Feb 2016 07:53:12 +0000 Subject: [PATCH] commander: remove counter The counter variable in system status wasn't used anywhere. --- msg/vehicle_status.msg | 1 - src/modules/commander/commander.cpp | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/msg/vehicle_status.msg b/msg/vehicle_status.msg index 33503c4e68..6661d09353 100644 --- a/msg/vehicle_status.msg +++ b/msg/vehicle_status.msg @@ -57,7 +57,6 @@ uint8 RC_IN_MODE_GENERATED = 2 # state machine / state of vehicle. # Encodes the complete system state and is set by the commander app. -uint16 counter # incremented by the writing thread everytime new data is stored uint64 timestamp # in microseconds since system start, is set whenever the writing thread stores new data uint8 main_state # main state machine diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 4c659075af..5cd4f6cba8 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2013-2015 PX4 Development Team. All rights reserved. + * Copyright (c) 2013-2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -39,7 +39,7 @@ * @author Petri Tanskanen * @author Lorenz Meier * @author Thomas Gubler - * @author Julian Oes + * @author Julian Oes * @author Anton Babushkin * @author Sander Smeets */ @@ -1258,7 +1258,6 @@ int commander_thread_main(int argc, char *argv[]) status.condition_system_prearm_error_reported = false; status.condition_system_hotplug_timeout = false; - status.counter++; status.timestamp = hrt_absolute_time(); status.condition_power_input_valid = true;