petrosilius
1d810bfa6f
AP_Scripting: added tracker Pelco-D control script
...
This script uses the scaled output from the antennatracker servos and map them to corresponding Pelco-D messages to be sent via a RS-485 interface to a motorized base (can be anything from motorized tracker to a PTZ camera).
If your FCU doesnt offer a RS-485 interface by default, you can use or TTL-RS485- or USB-RS485-adapters.
Pelco-D allows to control using either speed-/differential- or absolute-control control of the pan-/tilt-axis.
Currently the script uses speed based control using by mapping the "ContinuousRotation" type servos outputs to the corresponding Pelco-D messages.
The absolute control messages are implemented nevertheless for future use.
The script assumes therefor at least the following parameters to be set:
SCR_ENABLE = 1
SERVO_PITCH_TYPE = 2 # ContinuousRotation type servo
SERVO_YAW_TYPE = 2 # ContinuousRotation type servo
SERIALx_PROTOCOL = 28 # serial port used by luascript
Additionally the PITCH2SRV and YAW2SRV tuning needs to be done as described by the antennatracker description.
Also keep attention to the PITCH_MIN, PITCH_MAX and YAW_RANGE parameters to fit your Pelco-D hardware!
2024-05-28 17:42:52 +10:00
Andrew Tridgell
e0af22ad8f
SITL: update to work on newer cygwin versions
2024-05-28 11:33:38 +10:00
Iampete1
3f6ce2dc09
AP_DroneCAN: Serial: map baudrates so param works as expected
2024-05-28 10:27:20 +10:00
Peter Barker
720c8719dc
waf: boards.py: use chibios_hwdef.py to get boards list
2024-05-28 10:25:39 +10:00
Peter Barker
a669249416
GCS_MAVLink: default support for BATTERY2 sending to off
...
replaced by BATTERY_STATUS
2024-05-28 10:11:37 +10:00
Iampete1
f5e7bfcc48
AP_Scripting: remove support for REPL
2024-05-28 10:10:14 +10:00
rotorman
0962b759b0
AP_HAL_ChibiOS: adds Flywoo/Goku F405 HD 1-2S ELRS AIO v2 flight controller support
...
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2024-05-28 09:57:14 +10:00
MattKear
0a6fa4f886
AP_SurfaceDistance: Start library for tracking the floor/roof distance
2024-05-28 09:55:36 +10:00
Iampete1
e10b4abad8
ChibiOS: UART: Add support for RS-485 Driver Enable RTS flow control
2024-05-28 09:48:19 +10:00
Iampete1
e6a0abdfce
AP_HAL_ChibiOS: hwdef.py: find alt function for UART RTS and add to init struct
2024-05-28 09:48:19 +10:00
Iampete1
0959930289
AP_BoardConfig: update RTSCTS param values for new option
2024-05-28 09:48:19 +10:00
Iampete1
50fd01af97
GCS_MAVLink: use new `flow_control_enabled` helper
2024-05-28 09:48:19 +10:00
Iampete1
713eda617f
AP_Scripting: allow new flow control type in `set_flow_control` binding
2024-05-28 09:48:19 +10:00
Iampete1
d340f37678
AP_HAL: UARTDriver: Add new flow control option "FLOW_CONTROL_RTS_DE" for RS485 driver enable.
2024-05-28 09:48:19 +10:00
Thomas Watson
0956b4f65d
AP_HAL_SITL: remove deprecated --uartX options
...
Code remains to check for use of these options and give an error which
contains the correct option to use, due to the non-intuitive mapping
between --uartX and --serialN.
A future version will remove that code too.
2024-05-28 09:23:39 +10:00
Thomas Watson
d2456f4199
SITL: remove references to legacy UART order
2024-05-28 09:23:39 +10:00
burgeruser
458cb0a1c9
AP_HAL_ChibiOS: bi-directional dshot on iomcu F103 8MHz
2024-05-28 06:56:14 +10:00
Rhys Mainwaring
33d51d52ad
AP_DDS: ensure zero rotation quaternions are normalised
...
- ROS expects quaternions to be normalised and the default message constructor does not enforce this.
- Fix normalisation for pose stamped.
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-05-26 09:46:48 +10:00
Stephen Dade
d16ff40162
RC_Channel: detect duplicate aux functions with an ID >256
2024-05-24 09:57:17 +10:00
Paul Riseborough
91423d4c71
AP_NavEKF3: Remove unncessary local position height reporting offset
...
The offset generated by the EK3_OGN_HGT_MASK parameter bit 2 option is applied to the baro or range finder sensor so it does not have to be applied to the local position height.
2024-05-23 10:35:51 +10:00
Paul Riseborough
5fded75eb6
AP_NavEKF3: Adjust sensor height when EK3_OGN_HGT_MASK bit 2 is set
2024-05-23 10:35:51 +10:00
David O'Connor
77adb5586d
AP_HAL_ChibiOS: Added mag and dataflash logging support to AnyLeaf H7
2024-05-23 09:48:02 +10:00
Peter Barker
b7cf418d1e
GCS_MAVLink: allow handling of AP_MAVLINK_MSG_HIL_GPS_ENABLED to be compiled out
2024-05-23 09:16:32 +10:00
Peter Barker
05b8c28ea9
AP_GPS: allow handling of AP_MAVLINK_MSG_HIL_GPS_ENABLED to be compiled out
2024-05-23 09:16:32 +10:00
Alex Burka
8e399cffbe
AP_InternalError: fix signedness issue with snprintf
2024-05-22 23:22:23 +10:00
Iampete1
0c6f396438
AP_Scripting: docs: document all functions currently documented on the wiki
2024-05-22 18:13:53 +10:00
Peter Barker
482342340d
hwdef: fold minimal_GPS.inc into sole user
2024-05-22 18:03:06 +10:00
Randy Mackay
72b5efd8b3
AP_Mount: serial backends gets instance
2024-05-22 18:00:22 +10:00
Randy Mackay
99626b73ff
AP_Mount: SToRM32_serial inherits from serial backend
2024-05-22 18:00:22 +10:00
Randy Mackay
7fc00efe7e
AP_Mount: Viewpro inherits from serial backend
2024-05-22 18:00:22 +10:00
Randy Mackay
790b5e8565
AP_Mount: Siyi inherits from serial backend
2024-05-22 18:00:22 +10:00
Randy Mackay
1e777390b2
AP_Mount: add Backend_Serial
2024-05-22 18:00:22 +10:00
Andy Piper
3a4fdb16a8
AP_RCTelemetry: add support for baro/vario CRSF frames
2024-05-22 17:15:04 +10:00
Andy Piper
1e2621466c
AP_Frsky_Telem: factor out vspeed and nav alt
2024-05-22 17:15:04 +10:00
Andy Piper
9112b14414
AP_RCProtocol: add frame ids for CRSF baro/vario
2024-05-22 17:15:04 +10:00
James O'Shannessy
a5e11911fc
AP_Mount: Only save converted mount if mount was previously set in the first place
...
The mount library force configures the mount type on conversion, even if the mount was never configured in the first place
2024-05-22 17:11:40 +10:00
Andrew Tridgell
5fd4e23fa9
AP_Compass: removed IST8310 overrun message
...
this is not useful and just causes concern to users. Any small bus
delay can trigger this. We have health monitoring at a higher level
2024-05-22 14:51:15 +10:00
Peter Barker
24e54dac88
AC_WPNav: remove un-needed initialisation
2024-05-21 15:52:51 +10:00
Nick Exton
0af4649705
AP_Mount: In Servo backend, report attitude as demanded servo angles, not target angles
2024-05-21 14:27:28 +09:00
Nick Exton
e17439287b
AP_Mount: In Servo backend, add overrides for has_roll_control() and has_tilt_control()
2024-05-21 14:27:28 +09:00
Nick Exton
0e090faf05
AP_Mount: Add roll_range_valid() and pitch_range_valid() functions
...
Equivalent to yaw_range_valid().
2024-05-21 14:27:28 +09:00
Bob Long
7e8f9c72fb
AP_MotorsTri: reverse-frame cleanup and fixes
...
- fix motor test order for reverse frame
- add frame type string for reverse frame
- fix initialization of _pitch_reversed flag
2024-05-21 15:20:27 +10:00
Bob Long
dc3f2c9724
AP_Motors_test: add tri frames to json output
2024-05-21 15:20:27 +10:00
Nick Exton
8b5539c055
AP_Mount: Clarify angle frames of set_angle_target()
2024-05-21 14:28:38 +10:00
Iampete1
44bd77d49e
AP_BattMonitor: FuelLevel_Ananlog: set has_current true so capacity is reported
2024-05-21 10:07:48 +10:00
Andrew Tridgell
54b6349a2a
HAL_SITL: implement wind rate of change
2024-05-21 09:59:37 +10:00
Andrew Tridgell
1603869140
SITL: added SIM_WIND_TC
...
time constant for wind changes
2024-05-21 09:59:37 +10:00
Peter Barker
36e385fb22
AP_NavEKF3: set-origin failure comment improved
2024-05-21 09:56:02 +10:00
Randy Mackay
4e2dd7c399
AP_NavEKF3: accept set origin even when using GPS
2024-05-21 09:56:02 +10:00
muramura
ddae068657
AP_Param: Summarize the type definitions settings
2024-05-21 09:46:32 +10:00