Commit Graph

1202 Commits

Author SHA1 Message Date
Beat Küng f62324c8a6 mavlink_receiver.cpp: use sizeof(gps_inject_data_topic.data) instead of hardcoded size 2016-04-25 09:48:24 +02:00
Beat Küng 6029551c63 gps & mavlink receiver: use C arrays instead of std::array<> 2016-04-25 09:48:24 +02:00
Beat Küng b427f5c90d mavlink_receiver.cpp: fix coding style 2016-04-25 09:48:24 +02:00
Beat Küng 5b684a77f4 mavlink_receiver.cpp: remove __BEGIN_DECLS, __END_DECLS
This is the wrong usage of the macros and not needed at this place
2016-04-25 09:48:24 +02:00
Beat Küng 5cf351f585 orb: add gps_inject_data message & publish from mavlink 2016-04-25 09:48:24 +02:00
Lorenz Meier 25f327c4ac Set RSSI to zero if we loose signal 2016-04-23 16:33:25 +02:00
Lorenz Meier 803880a9f8 MAVLink: Fix current reporting 2016-04-23 14:24:36 +02:00
Lorenz Meier ff800a4c97 MAVLink app: Save stack for file name handliling, log only when armed 2016-04-22 10:28:13 +02:00
Lorenz Meier b046f93173 Better MAVLink app error reporting 2016-04-22 09:34:02 +02:00
Nicolas de Palezieux 8c246b3219 mavlink_receiver: only publish the distance measurement of the mavlink flow message on uORB if they are valid
On the snapdragon, optical flow is computed in a separate process and sent to the mainapp via mavlink. Distance measurements come from a range sensor and are already published on uORB.
Here we make sure that meaningless distance values in the mavlink optical flow message do not interfere with the ones from other sources.
2016-04-21 18:18:08 +02:00
devbharat e70804c9d0 Removed debug comments 2016-04-18 18:45:50 +02:00
Lorenz Meier cdeb7df43c MAVLink: More robust string operations 2016-04-17 20:03:48 +02:00
Lorenz Meier a663aa68af Send out ADS-B reports to GCS 2016-04-17 18:19:32 +02:00
Lorenz Meier 2c2a87cea1 MAVLink app: Read MAVLink transponder report 2016-04-17 17:57:00 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Julian Oes 0438bf6a8b mavlink: get the ifdefs correct 2016-04-12 10:13:52 -07:00
Julian Oes 72be6de0cf mavlink: whitespace fix 2016-04-12 10:13:52 -07:00
Julian Oes 361c057412 mavlink: get mavlink reconnection working 2016-04-12 10:13:52 -07:00
Daniel Agar 56dbfef378 remove duplicate bat_msg.id 2016-04-11 18:01:48 +02:00
Daniel Agar c494e85095 fix sign compare to make travis-ci happy 2016-04-11 18:01:48 +02:00
Julian Oes a11a986df8 mavlink: removed leftover debug printf 2016-04-11 18:01:48 +02:00
Julian Oes 1f44fb1efd commander: internalize system status bools
Most condition bools in the commander are not used anywhere but in the
commander. It therefore makes sense to move them to a different internal
struct and remove them from the vehicle_status message.

Also, the land_detected should be used by all the modules instead of
getting it through the commander and system_status.
2016-04-11 18:01:47 +02:00
Julian Oes 32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Julian Oes 74072dbe74 vehicle_status.msg: delete unused mavlink stuff
The MAV_TYPE enum was not in sync with the mavlink specs anymore. It
makes therefore sense to remove the duplication and include the correct
mavlink header file where it is needed.
Also, error counts which are not populated, can be scrapped.
2016-04-11 18:01:47 +02:00
Beat Küng 7ff80463be fix completely wrong file permissions for log files & mavlink ftp (new mode 666) 2016-04-11 11:23:01 +02:00
Lorenz Meier d97f32cca1 Fix MAVLink not responding regression on TELEM2 2016-04-10 12:11:26 -07:00
Lorenz Meier d2c98a98e9 Rename stop-all to stop for MAVLink, but still keep stop-all for existing scripts 2016-04-10 11:18:05 -07:00
Julian Oes 727783fe94 mavlink: keep trying to find to broadcast
This should help the Snapdragon to connect if the network is not yet up
by the time the mainapp starts. It will retry to find a network and
broadcast once it finds one.
2016-04-08 22:38:22 -07:00
Julian Oes ae2c28677d mavlink: adapt network detection for Mac, use heap
It seems that Mac does not support the ioctl to check how big the ifconf
buffer needs to be. Therefore we just have to make a guess.
Alos, instead of allocating the variable size array on the stack, it's
probably safer to use the heap.
2016-04-08 09:41:10 +02:00
Julian Oes 20cd5f3e76 mavlink: make broadcast detection Mac compatible
This adresses that the ifconf interface is a bit different on Mac.
2016-04-07 15:21:24 +02:00
Julian Oes 66567baf89 mavlink: only try broadcast if valid address found 2016-04-07 13:20:48 +02:00
sander a713fd4197 Implemented VTOL_TAKEOFF and VTOL_LAND commands 2016-04-02 21:29:25 +01:00
Lorenz Meier e832f7dbf5 Fix reporting on broadcast address 2016-04-02 00:04:26 +02:00
Lorenz Meier 76a9ee2618 MAVLink app: Limit to max updaate rate 2016-03-30 20:56:11 +02:00
Julian Oes 56585082ec mavlink: look up broadcast address, don't guess it 2016-03-30 17:36:04 +02:00
Julian Oes a7e9bc8ba5 mavlink: copyright and author update 2016-03-30 17:36:04 +02:00
Julian Oes df24852366 mavlink: fix broadcast on Snapdragon
Instead of using 255.255.255.255 as the broadcast address, go through
the network interfaces and and try to use a broadcast in the local
network such as 192.168.1.255.
2016-03-30 17:36:04 +02:00
Julian Oes f776a3dc37 mavlink: better broadcast failed error description 2016-03-30 17:36:04 +02:00
Lorenz Meier a66cf2a658 MAVLink app hotfix: Enable MAVLink daemon on default port 2016-03-28 17:30:43 +02:00
Lorenz Meier e26c5bb590 Do not receive anything in OSD mode 2016-03-28 12:37:03 +02:00
Lorenz Meier 9dd6327668 Fixed MAVLink app code style 2016-03-27 12:10:57 +02:00
Jimmy Johnson 3aaad68c76 fixed position tracking overshoot 2016-03-27 12:10:57 +02:00
Jimmy Johnson 142884bcd8 fixing code style and enter/exit radius logic 2016-03-27 12:10:57 +02:00
Jimmy Johnson 8829db8844 code clean up complete 2016-03-27 12:10:57 +02:00
Jimmy Johnson 26cb645ee0 follow me working 2016-03-27 12:10:57 +02:00
Jimmy Johnson 01e971b342 Tests 2016-03-27 12:10:57 +02:00
Jimmy Johnson 554d1ac013 making first setpoint on follow target activation loiter in place 2016-03-27 12:10:57 +02:00
Jimmy Johnson 69351675b6 follow target mode working 2016-03-27 12:10:57 +02:00
Jimmy Johnson bbc8eaefd7 Adding new follow target navigation and main states. New follow target
topic added. New follow fsm added to the navigator
2016-03-27 12:10:57 +02:00
Daniel Agar 70a68def83 params correct boolean tag 2016-03-25 20:25:17 -04:00