Peter Barker
b810a0de23
Plane: add logger documentation for NTUN
2020-03-20 13:05:46 +11:00
Peter Hall
a2e72de5ae
Plane: move to airspeed_estimate with pointer
2020-01-14 22:34:37 -07:00
Mark Whitehorn
14fc6c5446
Plane: add logging for tailsitter gainscaling and clean up tailsitter body-frame roll input handling
...
fix metadata for tailsitter param GSCMSK
rework roll/yaw scaling for body-frame roll options
add constraints on body-frame roll and yaw inputs
move speed_scaler logging into QTUN message
2019-12-18 08:33:29 +11:00
Peter Barker
6cd4dfba2c
Plane: use enum-class for RangeFinder Status
2019-11-09 08:01:53 +11:00
Peter Barker
1d99fbebc9
Plane: use ahrs singleton to log ATT, POS and AHRS2
2019-10-24 13:15:46 +11:00
Peter Barker
1674cb0a85
Plane: EKF logging moved into EKF from logger
2019-07-06 19:05:51 +10:00
Peter Barker
400aa53654
Plane: move arming-related functionality into parent classes
...
Logging moves up
arming via mavlink moves up
arming via switch moves up
2019-05-30 07:37:30 +09:00
Mark Whitehorn
e8adbba2fc
Plane: bodyframe roll log target attitude bugfix
2019-04-23 09:15:55 +10:00
Peter Barker
a19df642a0
Plane: RangeFinder now handles RFND logging
2019-04-09 22:17:58 +10:00
Peter Barker
3e505f33c3
Plane: use RSSI singleton for logging
2019-04-09 09:33:13 +10:00
Tom Pittenger
0270c57530
Plane: massive refactor and creation of Mode class
2019-04-02 16:28:52 +11:00
Peter Barker
3bba981a00
Plane: dataflash always emits rally points at startup
2019-02-12 11:48:55 +11:00
Peter Barker
11dd83e23a
Plane: remove rally argument from Write_Rally - use singleton
2019-01-31 09:51:25 +09:00
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
2019-01-18 18:08:20 +11:00
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
2019-01-18 18:08:20 +11:00
Andrew Tridgell
bc438676ab
Plane: fix tailsitter logged attitude targets
2019-01-18 14:16:55 +11:00
Peter Barker
a35fbb4a11
Plane: Log_Write_SIMSTATE no longer takes dataflash pointer
2019-01-18 11:16:54 +11:00
Andrew Tridgell
d3afc9424a
Plane: make QTUN logging match copter logging
2018-12-21 22:17:52 +11:00
Peter Barker
a5c34f6172
Plane: OpticalFlow takes care of its own logging
2018-11-13 10:40:23 +11:00
Leonard Hall
e50414d8b9
Plane: Log VTOL targets in ATT message in VTOL mode
2018-09-15 11:00:29 +10:00
Michael du Breuil
c8cb5b9e0f
Plane: Log target airspeed to NTUN messages
2018-08-09 11:53:05 +10:00
Michael du Breuil
fae8d1e489
Plane: Log navigation target location
...
Closes #4358
2018-06-12 09:08:58 +10:00
Peter Barker
052b76d017
Plane: move Log_Write_Home_And_Origin into AP_AHRS
2018-05-17 10:13:42 +10:00
Michael du Breuil
b479f3760a
Plane: Remove some unneeded logging indirection
...
Saves 32 bytes on make px4-v2
2018-05-16 20:34:00 +10:00
Peter Barker
eb026e0a5f
Plane: correct compilation when logging is disabled
2018-05-10 17:55:13 +09:00
Peter Barker
5ef417a669
Plane: GPS now logs its own data
2018-04-18 13:50:55 +09:00
Peter Barker
2b54113334
Plane: Baro does its own dataflash logging
2018-04-12 19:12:12 +01:00
Peter Barker
7fd859da65
Plane: move home state into AP_AHRS
2018-03-19 10:32:37 +09:00
Peter Barker
7c86c4fe61
Plane: use ins singleton
2018-03-16 00:37:35 -07:00
Peter Barker
f558bbca2e
Plane: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
8cae776448
Plane: move logging of PM and PERF messages to AP_Scheduler
2018-02-13 17:15:05 +11:00
Peter Barker
02540fdbf9
Plane: use AP_Scheduler's loop() function
2018-02-13 17:15:05 +11:00
Peter Barker
519e6c31d2
Plane: use AP::PerfInfo library
2018-02-13 17:15:05 +11:00
Andrew Tridgell
2fb6113098
Plane: use AP:PerfInfo class
2018-02-10 10:50:22 +11:00
Michael du Breuil
43972f8e56
Plane: Move battery logging code to AP_BattMonitor
2018-02-06 00:11:32 +00:00
Randy Mackay
f41f4dc6e5
Plane: move pos-control pids to pos-control library
2018-01-23 12:00:43 +09:00
Peter Barker
6ed0d645a3
Plane: support for units on fields
2017-11-23 10:40:30 +11:00
Andrew Tridgell
1bee1dd210
Plane: log currently used airspeed
...
this logs whatever airspeed is being used for flight
2017-11-01 09:22:15 +11:00
Tom Pittenger
8adacfeea3
Plane: always log MODE and include reason when logging is enabled
2017-10-25 21:18:29 +11:00
Michael du Breuil
615f6dfadb
Plane: Don't log PIDL messages
2017-10-17 14:37:11 -07:00
Lucas De Marchi
36c80daa86
ArduPlane: do not include version.h/ap_version.h
...
The interface provided by each vehicle should be used to get the
version.
2017-09-23 21:37:45 -07:00
Randy Mackay
c80a83322a
Plane: integrate simpler Log_Write_EKF
2017-08-23 11:19:14 +09:00
Peter Barker
1a665280e9
Plane: remove CLI
2017-08-14 10:23:50 +09:00
Andrew Tridgell
fedd2c558c
Plane: added AETR log message
...
this makes debugging mixers much easier
2017-08-01 08:25:32 +10:00
Peter Barker
fa39f315c6
Plane: move starting of new logs into DataFlash
2017-07-19 16:37:28 +01:00
Peter Barker
5a8f01c19c
Plane: use send_text method on the GCS singleton
2017-07-09 17:17:29 -04:00
Peter Barker
30dfd32b87
Plane: stop using in_mavlink_delay as a proxy for disabling logging
2017-06-16 17:07:48 +01:00
Peter Barker
c6beb3a867
Plane: simplify dataflash initialisation
2017-06-14 12:20:29 +01:00
Peter Barker
4dc241fd22
Plane: StartUnstartedLogging replaces logging_started/start_logging
2017-06-11 20:34:12 +01:00
Peter Barker
084242cf03
Plane: move init of DataFlash references into vehicle init
...
It is possible to start a log before the existing codepath is crossed.
2017-05-01 15:04:34 +01:00
Andrew Tridgell
fedabd1ace
Plane: added logging of quadplane desired yaw
...
makes analysis of takeoffs easier
2017-04-24 16:52:16 +10:00
Peter Barker
b5b8620d04
Plane: log GPS detection state to DF on log startup
2017-04-23 21:04:17 +01:00
Eugene Shamaev
ca84ab36be
Plane: AOA and SSA estimations are added to parameters and data logs
2017-04-19 20:48:42 +10:00
Andrew Tridgell
88e02c7b35
Plane: log the throttle mix for quadplane copter control
2017-04-19 09:08:43 +10:00
Andrew Tridgell
6a90257d2a
Plane: fixed attitude logging for tailsitters
2017-03-31 11:30:44 +11:00
Andrew Tridgell
c76eadf4f6
Plane: add available memory to PM message
2017-03-27 14:35:21 +09:00
Andrew Tridgell
dd4f56dd98
Plane: added PIQ messages for quadplane PIDs
...
keep them separate from fixed wing PIDs, so we can watch the
interaction between the PIDs in transitions
2017-03-14 14:42:20 +11:00
Andrew Tridgell
0e175179a6
Plane: log home and origin on logging start
2017-03-14 10:51:15 +11:00
Michael du Breuil
cf10b7b841
Plane: Add support for landing PID's and servo control
2017-03-02 12:38:59 +11:00
Randy Mackay
c0f155fd27
Plane: use only downward facing rangefinder
2017-02-27 15:18:25 +09:00
Peter Barker
1d7994e9ba
Plane: create GCS_Plane subclass
2017-02-13 17:03:06 +11:00
Peter Barker
d060670ba3
Plane: rename gcs[] to gcs_chan[]
...
Wish to use gcs() to return the gcs singleton
2017-02-13 09:32:01 +11:00
murata
2492b9db7e
Plane: Unify from print or println to printf.
2017-01-27 18:20:22 +11:00
Andrew Tridgell
b83f50be0f
Plane: use new SRV_Channels API
2017-01-12 17:39:37 +11:00
Peter Barker
4865bec871
Plane: correct compilation when logging disabled
2017-01-02 16:01:29 +09:00
Andrew Tridgell
4cf509a693
Plane: fixed EKF3 logging
2016-12-19 08:07:14 +11:00
Randy Mackay
d9462d5dbc
Plane: remove call to EKF1 logging
2016-11-30 17:57:00 +09:00
Peter Barker
784da9d1eb
Plane: check CardInserted in AP_Arming
2016-11-29 15:14:09 -08:00
Peter Barker
d11578f203
Plane: do not reset LOG_BITMASK when no CardInserted
...
This really just confuses everyone
2016-11-29 15:14:09 -08:00
Tom Pittenger
0ffeed644c
Plane: remove define RANGEFINDER_ENABLED - always enabled
2016-11-25 19:07:30 -08:00
murata
0ee8edc29d
Plane: Change from printf statement to print, println statement.
2016-11-25 15:57:15 -08:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Randy Mackay
2484486999
Plane: log rally points on startup
2016-07-04 11:17:15 +09:00
Tom Pittenger
a596aa5907
Plane: do not log CURR.Throttle because it's already logged elsewhere
2016-06-02 16:59:13 -07:00
Tom Pittenger
30c5c9eb5d
Plane: log SONR.DistCM in cm as SONR.Dist as meters
2016-05-17 18:59:37 -07:00
Tom Pittenger
00863623d7
Plane: SONR logging, remove BaroAlt,GSpd,Thr
2016-05-17 18:59:22 -07:00
Tom Pittenger
ba5b4e694c
Plane: log NTUN:ArspdErr airspeed error (in meters)
2016-05-13 17:22:01 -07:00
Tom Pittenger
1551b9d881
Plane: remove redundant logging in NTUN
2016-05-13 17:22:00 -07:00
Andrew Tridgell
574ba71ef3
Plane: update for AP_TECS API change
2016-05-14 08:26:10 +10:00
Andrew Tridgell
eab42c5740
Plane: fixed attitude logging with fast logging off
2016-05-11 05:55:24 +10:00
skyscraper
7f29903287
ArduPlane: Fix up after refactoring RC_Channel class
...
Further to refactor of RC_Channel class which included
adding get_xx set_xx methods, change reads and writes to the public members
to calls to get and set functionsss
old public member(int16_t) get function -> int16_t set function (int16_t)
(expression where c is an object of type RC_Channel)
c.radio_in c.get_radio_in() c.set_radio_in(v)
c.control_in c.get_control_in() c.set_control_in(v)
c.servo_out c.get_servo_out() c.set_servo_out(v)
c.pwm_out c.get_pwm_out() // use existing
c.radio_out c.get_radio_out() c.set_radio_out(v)
c.radio_max c.get_radio_max() c.set_radio_max(v)
c.radio_min c.get_radio_min() c.set_radio_min(v)
c.radio_trim c.get_radio_trim() c.set_radio_trim(v);
c.min_max_configured() // return true if min and max are configured
Because data members of RC_Channels are now private and so cannot be written directly
some overloads are provided in the Plane classes to provide the old functionality
new overload Plane::stick_mix_channel(RC_Channel *channel)
which forwards to the previously existing
void stick_mix_channel(RC_Channel *channel, int16_t &servo_out);
new overload Plane::channel_output_mixer(Rc_Channel* , RC_Channel*)const
which forwards to
(uint8_t mixing_type, int16_t & chan1, int16_t & chan2)const;
Rename functions
RC_Channel_aux::set_radio_trim(Aux_servo_function_t function)
to RC_Channel_aux::set_trim_to_radio_in_for(Aux_servo_function_t function)
RC_Channel_aux::set_servo_out(Aux_servo_function_t function, int16_t value)
to RC_Channel_aux::set_servo_out_for(Aux_servo_function_t function, int16_t value)
Rationale:
RC_Channel is a complicated class, which combines
several functionalities dealing with stick inputs
in pwm and logical units, logical and actual actuator
outputs, unit conversion etc, etc
The intent of this PR is to clarify existing use of
the class. At the basic level it should now be possible
to grep all places where private variable is set by
searching for the set_xx function.
(The wider purpose is to provide a more generic and
logically simpler method of output mixing. This is a small step)
2016-05-10 16:21:16 +10:00
Andrew Tridgell
db5f50e08e
Plane: convert tuning to use AP_Tuning library
2016-05-07 18:34:15 +10:00
Andrew Tridgell
3bbc6353d8
Plane: use have_ekf_logging()
2016-05-07 18:27:20 +10:00
Lucas De Marchi
baa287e5e5
ArduPlane: use separate header for version macro
...
Having the version macro in the config.h and consequently in the main
vehicle header means that whenever the version changes we need to
compiler the whole vehicle again. This would not be so bad if we weren't
also appending the git hash in the version. In this case, whenever we
commit to the repository we would need to recompile everything.
Move to a separate header that is include only by its users. Then
instead of compiling everything we will compile just a few files.
2016-05-06 13:11:28 -03:00
Andrew Tridgell
abfcf89f5e
Plane: reduced the rate of EKF and attitude logging to 25Hz
...
this will reduce the log file size while not appreciably reducing the
ability to analyse logs
2016-04-30 14:34:47 +10:00
Tom Pittenger
aadd9a18ce
Plane: log L1 xtrack error integrator and remove extra yaw logging
2016-04-21 21:30:55 -07:00
Andrew Tridgell
cf7b6123a9
Plane: log the number of lost log messages
2016-04-21 16:45:02 +10:00
Andrew Tridgell
8683616d8c
Plane: redo scheduler table and improve perf logging
...
The scheduler table was still setup for a worst case CPU of
AVR2560. Adjust times for the stm32 and improve perf logging
2016-04-21 16:45:02 +10:00
Andrew Tridgell
a7006a7784
Plane: refactor perf variables into a structure
2016-04-21 16:45:02 +10:00
Andrew Tridgell
27fb35253c
Plane: added in-flight transmitter tuning
2016-04-16 20:26:43 +10:00
Andrew Tridgell
1fe9582ac3
Plane: back to velocity controller for quadplane landing
...
now with much smoother attitude control thanks to some help from
Leonard
2016-04-10 22:01:19 +10:00
Andrew Tridgell
5f1ad68bd9
Plane: improved velocity controller for quadplane landing
2016-04-04 09:50:35 +10:00
Randy Mackay
52caed2573
Plane: QTUN df messages angle boost field as float
2016-04-01 11:59:30 +09:00
Randy Mackay
70f81ee338
Plane: remove multicopter PID parameters
...
These have been moved to the AC_AttitudeControl class
2016-04-01 11:59:30 +09:00
Andrew Tridgell
4d7beab8cc
Plane: added QTUN logging for quadplane
2016-03-25 12:33:19 +11:00
Randy Mackay
f66d5f7a8c
Plane: use ahrs.get_origin instead of ekf.getOriginLLH
...
This ensures we get the origin from the active EKF
2016-03-03 16:20:59 +09:00
Will Sackfield
5f5035933f
ArduPlane: static cast to uint8 on initialization of struct
...
* clang requires that the casting be explicit
2016-02-29 14:14:37 +11:00
Andrew Tridgell
b84b480086
Plane: added PID tuning for quadplane modes
2016-02-20 20:20:27 +11:00
Tom Pittenger
1cb094f12e
Plane: make throttle signed (pos and neg)
2016-02-09 14:18:02 +11:00
Andrew Tridgell
d82c8dcd6d
ArduPlane: update for changed AP_Camera API
2016-01-29 09:19:44 +11:00