Andrew Tridgell
42522baf9f
geofence: store fence points as int32_t
...
this keeps maximum precision in fence boundaries
13 years ago
Andrew Tridgell
fc495ce6a7
geofence: added fence status reporting and faster altitude check
13 years ago
Andrew Tridgell
3b148c87d5
geofence: main geo-fence code
...
this implements the primary logic of geo-fencing
13 years ago
Andrew Tridgell
84a694efb9
only check for "enter 3 times" in first 20s after boot
...
we don't want stray bytes on serial3 to make us enter the CLI during
flight!
13 years ago
Andrew Tridgell
8cd13749bd
MAVLink: fixed link flood on waypoint upload
13 years ago
Andrew Tridgell
d5c23c83cf
apm2: fixed for new barometer code
13 years ago
Andrew Tridgell
39a36fe946
fixed the "reboot on GPS lock" bug
...
the problem was that with APM2 we may not have a 2nd GCS instance. The
"gps alt: xxx" message was being unconditionally sent to both GCS
instances, which caused a crash
13 years ago
Andrew Tridgell
838c57cd1a
mavlink: paranoia setting of failsafe when forcing AUTO mode
...
this shouldn't be needed, but will do no harm, and I thought I saw
this fail in a test
13 years ago
Andrew Tridgell
7def0e98e8
USB-MUX: auto-switch telemetry port based on UXB mux for ArduPlane
...
when USB is unplugged, switch baud rate to the SERIAL3_BAUD rate from
EEPROM
13 years ago
Andrew Tridgell
8ef364657b
MAVLink: fixed throttle display in VFR_HUD
13 years ago
Amilcar Lucas
ab730ff919
Added camera and/or antenna mount support.
...
It is fully configurable with the mission planner, there is no need to change
the source code to adapt to your setup.
It needs more testing, but the SIL is not working for me.
13 years ago
Andrew Tridgell
9eb27c2573
GCS: fixed timeout loading waypoints
...
while loading waypoints we could saturate the link
13 years ago
Michael Oborne
3f3c04f95b
Add MAVLINK_MSG_ID_HIL_STATE message
13 years ago
Andrew Tridgell
d9ae4e4e6e
MAVLink: use new MAV_MODE_FLAG_CUSTOM_MODE_ENABLED flag
...
this enables us to tell if custom_mode is set
13 years ago
Andrew Tridgell
580647b1de
use C++ tricks to minimise differences for MAVLink 1.0
...
this should make maintainence/testing a bit easier
13 years ago
Doug Weibel
645b9c1d48
Initial rewrite of command logic.
...
Changes mission structure so that conditional and immediate commands are located between associated waypoints instead of after the second waypoint.
13 years ago
Andrew Tridgell
5a44298d57
CLI: enable "hit enter 3 times" support for CLI
...
if you hit enter 3 times before you send any mavlink packets, we will
enter CLI mode
13 years ago
Andrew Tridgell
2b9daf65ff
mavlink: fixed WP upload
...
The previous code accepted arbitrary command codes here, and ACKed
them. Later we should specifically list which ones are OK
13 years ago
Andrew Tridgell
5a089f98d2
MAVLink: MAVLink 1.0 support now builds
...
not testing at all - so be careful!
13 years ago
Andrew Tridgell
f815a1b27b
mavlink: started adding support for MAVLink 1.0
...
this is nowhere near complete, and does not compile yet
13 years ago
Michael Oborne
d38b289766
hil sensor cleanup
14 years ago
Michael Oborne
7ef51f723d
Sensor hil fix's
14 years ago
Amilcar Lucas
e5c248e2bf
Moved mavlink_check_target() to the libraries/.
...
This allows it to be reused by the other libraries and by other projects ArduPlane, ArduCopter, ArduRover ... etc.
It also reduces code duplication
14 years ago
Andrew Tridgell
6a9a85f184
remove unused climb_rate code
14 years ago
Andrew Tridgell
0f09bf6654
GCS: added new gcs_send_text_fmt() method
...
this allows low priorty formatted messages to be sent to the ground
station, without causing a CPU stall on the serial send buffer
14 years ago
Andrew Tridgell
9351ef17a9
GCS: don't send low priority messages unless they fit
...
check the serial transmit buffer, and don't send low priority messages
unless they can go straight out without blocking the CPU
14 years ago
Andrew Tridgell
55cd7bcf1d
added gcs_severity enum
...
this makes it harder to mixup defines
14 years ago
Andrew Tridgell
66e4ae50bb
remove some more old cruft
14 years ago
Andrew Tridgell
73223ee458
remove Mavlink_Common.h and used deferred logic for params/waypoints
...
this moves the mavlink send logic into GCS_Mavlink.pde, and also
ensures we only ever send parameters and waypoints when there is
sufficient space in the serial send buffer
14 years ago
Andrew Tridgell
de12ea429e
remove some more unused code in the GCS interface
14 years ago
Andrew Tridgell
e61d742345
GCS: make the two GCS links gcs0 and gcs3
...
the artifical separation between 'gcs' and 'hil' just leads to
confusion. This also simplifies the code a bit more, and saves us a
bit more text
14 years ago
Andrew Tridgell
2ca8e58bc2
GCS: simplify the API for sending messages
...
this makes the code clearer, and saves us another 100 bytes of text
14 years ago
Andrew Tridgell
17ebb311a7
MAVLink: use enum ap_message and remove unused param argument
...
saves us another 200 bytes of text
14 years ago
Andrew Tridgell
9baab490f1
HIL: first step in simplifying the HIL/GCS code
...
this gets rid of the messy #ifdefs around HIL_PORT, and removes
non-MAVLink GCS and HIL support
14 years ago
Andrew Tridgell
49d96726d5
MAVLink: only send HEARTBEAT and SYS_STATUS during initialisation
...
I am concerned that some of the mavlink send routines may impact on
sensor calibration, so its safer to just send the minimum information
to keep the GCS happy
14 years ago
Michael Oborne
e43b711e96
fix remote error value
14 years ago
Andrew Tridgell
0a793a1327
Revert "added support for AP_ADC MAVLink packet"
...
This reverts commit a65a2dda2c1bfa95437880227a3abddc95b329f5.
I am reverting this not for any sane reason, but because my 3 APM
boards now lock up on any I2C operation, and I don't know why. I can't
see how this change could have caused it, but I don't want to take the
chance.
14 years ago
Andrew Tridgell
a2c1caacf5
Revert "added support for AP_ADC MAVLink packet"
...
This reverts commit a65a2dda2c1bfa95437880227a3abddc95b329f5.
I am reverting this not for any sane reason, but because my 3 APM
boards now lock up on any I2C operation, and I don't know why. I can't
see how this change could have caused it, but I don't want to take the
chance.
14 years ago
Andrew Tridgell
c65d038ccf
added support for AP_ADC MAVLink packet
...
this adds AP_ADC, which sends raw ADC 16 bit values for all 6 ADC
channels at the Extra3 MAVLink stream rate. Extra3 was previously
unused
14 years ago
Andrew Tridgell
52dc0a915a
added support for AP_ADC MAVLink packet
...
this adds AP_ADC, which sends raw ADC 16 bit values for all 6 ADC
channels at the Extra3 MAVLink stream rate. Extra3 was previously
unused
14 years ago
Amilcar Lucas
b7a0d8836a
This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port
14 years ago
Andrew Tridgell
609ae8359d
import APM_Camera branch from SVN
14 years ago
Andrew Tridgell
e0dc1271d6
imported ArduPlane from ArduPilotMega svn
14 years ago