Commit Graph

60021 Commits

Author SHA1 Message Date
Peter Barker c1110d4b43 AP_RCProtocol: disable raw logging if no RC_Channel
We're asking the singleton here for information on whether we should do raw logging.  We may not actually be compiling the RC_Channel library in.
2023-10-03 11:46:43 +11:00
Michael du Breuil e41cc42e10 AP_EFI: Rate limit the megasquirt driver
This fixes it up so that the driver actually works on things like
AP_Periph that poll at a high rate. This was never a problem with the
main firmware as EFI was run at a lower rate, but on AP_Periph this was
much to fast. This lead to spamming fresh requests and keeping the
buffer completly stuffed with requests. To compound it, the EFI device
would start over when there was a fresh request, and eventually our
buffer writes become corrupted leading to bad checksums, and a complete
failure of the comms. This prevents that situation from happening.
2023-10-03 11:32:07 +11:00
Iampete1 9381e2f411 Plane: GuidedHeading PID: remove slew limit 2023-10-03 11:28:18 +11:00
Iampete1 73db3c3823 Plane: MAV_CMD_GUIDED_CHANGE_HEADING: allow changing heading type or rate for same heading 2023-10-03 11:28:18 +11:00
Iampete1 e9fbf6db24 Plane: fix guided heading control anti windup 2023-10-03 11:28:18 +11:00
Iampete1 9e9aaed1b5 AC_PID: Simplify update_error method by calling update all 2023-10-03 11:27:07 +11:00
Randy Mackay 18bf9669b0 AP_Mount: Xacti get_param_name_str returns empty string on failure 2023-10-03 11:24:10 +11:00
Randy Mackay 046cf5630e AP_Mount: Xacti uses GCS_SEND_TEXT 2023-10-03 11:24:10 +11:00
Randy Mackay 288f7b5650 AP_Mount: Xacti take pic reliability improved 2023-10-03 11:24:10 +11:00
Randy Mackay 4ba6375d38 AP_Mount: Xacti does not report cannot take pic 2023-10-03 11:24:10 +11:00
Iampete1 3429276224 AP_InertialSensor: add INS_RAW_LOG_OPT to allow raw logging of post, and pre+post on primary or all gyros 2023-10-03 10:24:58 +11:00
Tom Pittenger 3013a7959d Tools: add build_option - ODID (OpenDroneID/RemoteID) 2023-10-03 10:17:19 +11:00
Tom Pittenger 9cc3d71c50 Tools: add extract_features Check Firmware and ODID 2023-10-03 10:17:19 +11:00
Michael du Breuil 9e32456003 AP_Motors: Add a seprate spool down time, if it's 0 use spool up time 2023-10-03 08:04:56 +09:00
Peter Barker 0cc9484b2d AP_RCTelemetry: remove some uses of gcs singleton 2023-10-03 09:47:38 +11:00
Andrew Tridgell af061d41ae waf: enable ADSB in SITL periph 2023-10-02 21:45:28 +11:00
Andrew Tridgell a60c449833 autotest: enable ADSB on ADSB SITL periph 2023-10-02 21:45:28 +11:00
Andrew Tridgell da0870f616 HAL_ChibiOS: enable mavlink bindings for ADSB periph 2023-10-02 21:45:28 +11:00
Andrew Tridgell bf229b3dc1 HAL_SITL: enable ADSB simulator in SITL periph 2023-10-02 21:45:28 +11:00
Andrew Tridgell 92c0e7f860 GCS_MAVLink: use mavlink_frame_char_buffer()
and remove unnecessary extra mavlink_get_channel_status() function
2023-10-02 21:45:28 +11:00
Andrew Tridgell ac3f4f0c5e GCS_MAVLink: use mavlink_XXX_encode_status() in example code 2023-10-02 21:45:28 +11:00
Andrew Tridgell be01fcfdfd SITL: use mavlink_XXX_encode_status()
this avoids clobbering sequence numbers and fixes race conditions
2023-10-02 21:45:28 +11:00
Andrew Tridgell e7a94df89a mavlink: submodule update 2023-10-02 21:45:28 +11:00
Andrew Tridgell 18f3ab98e4 HAL_SITL: allow for I2C simulated devices in SITL AP_Periph
this allows for SMBbus batteries and other I2C simulated devices
2023-10-02 21:45:28 +11:00
Andrew Tridgell 5f5de52984 GCS_MAVLink: allow for mavlink bindings only in GCS_MAVLink
this is used by SITL periph to allow for mavlink based simulators
2023-10-02 21:45:28 +11:00
Andrew Tridgell 7aa1f5af22 waf: enable mavlink bindings in SITL periph 2023-10-02 21:45:28 +11:00
Andrew Tridgell bb004c499f AP_Periph: fixed ADSB peripheral to send heartbeat
and remove duplicated mavlink bindings
2023-10-02 21:45:28 +11:00
Andrew Tridgell 8e7c70a0f2 AP_Periph: support mavlink based simulated devices in SITL periph 2023-10-02 21:45:28 +11:00
Andrew Tridgell 13765ec9ee AP_Periph: fixed array delete in batt_balance 2023-10-02 21:45:28 +11:00
Andrew Tridgell 50ae89ed8c AP_Periph: support per-cell info in periph battery monitoring
useful for SMBus batteries
2023-10-02 21:45:28 +11:00
Michelle Rossouw e9331827ac .github: Add KakuteF7 and MatekH743-bdshot boards to test size boards 2023-10-01 16:36:56 +11:00
Andrew Tridgell 4ca2277f1a AP_Scripting: added logging to EFI_Halo6000.lua driver
allows for log analysis of current/voltage
2023-09-30 17:15:36 +10:00
Andrew Tridgell 4cabe0f223 AP_GPS: prevent use of blended GPS with moving baseline
when moving baseline is enabled the rover is slaved to the base for
position and velocity, adding no additional useful data. Only the yaw
comes from the rover
2023-09-30 09:05:08 +10:00
Andrew Tridgell 4e61fb3f26 AP_GPS: allow GPS moving baseline rover at 3Hz
users with busy CAN bus often get significiantly lower GPS rates on a
moving baseline rover, preventing arming. This PR relaxes the required
frame rate as the EKF is quite happy with 3Hz yaw and the yaw is the
only data consumed from a moving baseline rover
2023-09-30 09:05:08 +10:00
Peter Barker 1641aa42ec autotest: add test for MAV_CMD_DO_LAND_START 2023-09-29 13:55:32 +10:00
Peter Barker ef1952e1c0 Copter: acccept DO_LAND_START as both int and long 2023-09-29 13:55:32 +10:00
Peter Barker 3a465829b3 Tools: accept several mode-changing commands via command_int
... as well as via command_long
2023-09-29 08:56:50 +10:00
Peter Barker d54d9ae922 ArduCopter: accept several mode-changing commands via command_int
... as well as via command_long
2023-09-29 08:56:50 +10:00
Andrew Tridgell 4a181ede62 AP_TECS: fixed descent or lack of climb bug
this fixes a state where we either cannot climb or descend in an
uncontrolled manner in a TECS controlled mode

the conditions under which this happened were:

- _use_synthetic_airspeed_once was true due to quadplane takeoff
- we left _thr_clip_status as MAX from previous use of synthetic airspeed
- then run without airspeed

note that this can also impact users with an airspeed sensor if they
disable it or it fails in flight, particularly during a climb
2023-09-28 20:37:41 +10:00
Peter Barker e2895c08ae autotest: rename PayLoadPlaceMission to PayloadPlaceMission 2023-09-28 17:13:38 +10:00
Peter Barker 5cb20abaa7 autotest: rename get_message_rate to measure_message_rate 2023-09-28 13:43:59 +10:00
Andy Piper e068847185 AP_Bootloader: update board id for TMotor H7 2023-09-28 07:38:43 +10:00
Peter Barker f358ddd771 AP_GPS: add an AP_GPS_FixType header
useful when you need nice symbols for the numbers, but are not compiling the GPS headers in
2023-09-27 14:14:57 -07:00
Tom Pittenger 6bf071e6eb modules: mavlink sim_state integer 2023-09-27 14:14:37 -07:00
Samuel Tabor 40f62949b3 Send lat lon in SIM_STATE as int32_t extensions 2023-09-27 14:14:37 -07:00
Tom Pittenger 8c4d00e6f2 SITL: add a thermal at home 2023-09-27 12:19:00 -07:00
Peter Barker ad70237013 Tools: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker eb0d421bfc Blimp: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker 2eb5a7b09d ArduSub: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker a0ca3ffb22 ArduCopter: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00