mavlink: cleanup and refactoring, rcS: EXIT_ON_END fix

This commit is contained in:
Anton Babushkin
2014-03-01 18:30:30 +04:00
parent c10ef78753
commit 256cc2b411
3 changed files with 179 additions and 217 deletions
+2 -1
View File
@@ -118,6 +118,7 @@ then
set MKBLCTRL_MODE none
set FMU_MODE pwm
set MAVLINK_FLAGS default
set EXIT_ON_END no
set MAV_TYPE none
#
@@ -380,7 +381,6 @@ then
#
# MAVLink
#
set EXIT_ON_END no
if [ $MAVLINK_FLAGS == default ]
then
@@ -539,6 +539,7 @@ then
if [ $EXIT_ON_END == yes ]
then
echo "[init] Exit from nsh"
exit
fi
File diff suppressed because it is too large Load Diff
+10 -13
View File
@@ -142,7 +142,7 @@ public:
int get_uart_fd();
const char *device_name;
const char *_device_name;
enum MAVLINK_MODE {
MODE_CUSTOM = 0,
@@ -191,10 +191,7 @@ protected:
private:
int _mavlink_fd;
bool thread_running;
int _mavlink_task; /**< task handle for sensor task */
int _mavlink_incoming_fd; /**< file descriptor on which to receive incoming strings */
bool _task_running;
perf_counter_t _loop_perf; /**< loop performance counter */
@@ -204,7 +201,7 @@ private:
MavlinkOrbSubscription *_subscriptions;
MavlinkStream *_streams;
orb_advert_t mission_pub;
orb_advert_t _mission_pub;
struct mission_s mission;
uint8_t missionlib_msg_buf[sizeof(mavlink_message_t)];
MAVLINK_MODE _mode;
@@ -212,17 +209,17 @@ private:
uint8_t _mavlink_wpm_comp_id;
mavlink_channel_t _channel;
struct mavlink_logbuffer lb;
unsigned int total_counter;
struct mavlink_logbuffer _logbuffer;
unsigned int _total_counter;
pthread_t receive_thread;
pthread_t _receive_thread;
/* Allocate storage space for waypoints */
mavlink_wpm_storage wpm_s;
mavlink_wpm_storage *wpm;
mavlink_wpm_storage _wpm_s;
mavlink_wpm_storage *_wpm;
bool _verbose;
int _uart;
int _uart_fd;
int _baudrate;
int _datarate;
@@ -231,7 +228,7 @@ private:
* logic will send parameters from the current index
* to len - 1, the end of the param list.
*/
unsigned int mavlink_param_queue_index;
unsigned int _mavlink_param_queue_index;
bool mavlink_link_termination_allowed;