Peter Barker
0cfaec5d87
AP_Vehicle: move sitl init call much earlier in startup
...
This was being called way too late. It was overwriting values that were inserted into the simualted vehicle model by the .json model defaults
2025-12-10 17:23:59 +11:00
Peter Barker
0152769d19
AP_Vehicle: add an init method to SITL::SIM
...
constructor ordering can mean that we construct SITL::SIMi before we construct SITL::AirspeedParm::varinfo
That leads to parameters not being initialised as there is no GroupInfo structure for the populate-from-defaults code to walk.
That can lead to division-by-zero when we divide by the simulated airspeed ratio.
2025-12-09 10:09:03 +11:00
Thomas Watson
445bb60e01
AP_Vehicle: rehabilitate AP_Arming init
...
Was prototyped many years ago but never defined or called.
2025-12-04 11:52:13 -06:00
Bob Long
082c53ebc1
AP_Vehicle: move motor takeoff check to AP_Vehicle
2025-11-25 20:22:07 +09:00
Iampete1
e630c11e1c
AP_Vehicle: init msp after CAN manager
2025-08-04 18:09:55 -05:00
Iampete1
792b4f6b48
AP_Vehicle: add RPM lib and run at 50Hz
2025-07-22 10:33:55 +10:00
Andrew Tridgell
57a89eefd6
AP_Vehicle: init scripting serial before AP_Networking
...
this makes it possible for a lua script to provide a PPP serial port
to AP_Networking
2025-06-06 18:09:51 +10:00
Peter Barker
8f6fb58376
AP_Vehicle: rename AHRS get_roll etc accessors to include _rad
2025-06-05 17:28:41 +10:00
Peter Barker
dc1b52c64c
AP_Vehicle: rename HAL_EXTERNAL_AHRS_ENABLED to AP_EXTERNAL_AHRS_ENABLED
...
in preparation for making this an optional feature; a lot of people will want to go and put this in their hwdef files as soon as we do this!
2025-05-13 09:06:44 +09:00
Andy Piper
ae7cb492a2
AP_Vehicle: run_fence_checks() -> fence_checks_async()
2025-04-23 17:16:58 +10:00
Andy Piper
f023ac82be
AP_Vehicle: add fence breach check state for fence io callbacks
2025-04-09 17:01:04 +01:00
Iampete1
6ab403169d
AP_Vehicle: call SerialManager registered_ports_log at 1Hz
2025-03-12 18:28:51 +11:00
bugobliterator
5cd8a3a429
AP_Vehicle: set iomcu serialmanager protocol if iomcu is enabled
2025-02-27 20:11:40 +11:00
Peter Barker
6338d10b5f
global: create and use HAL_PROGRAM_SIZE_LIMIT_KB
...
We will reserve BOARD_FLASH_SIZE for the internal flash on stm32 flash processors, use HAL_PROGRAM_SIZE_LIMIT_KB in the general code base.
Notable change here is that boards with external flash will start to get features only available with more than 2MB of program storage
2025-02-26 10:06:39 +11:00
Bob Long
4eab74fbc5
AP_Vehicle: add comment for ESC Telem update rate
2025-02-04 10:46:34 +11:00
muramura
2cfa6afd87
AP_Vehicle: Change division to multiplication
2025-01-02 23:22:42 +11:00
Andy Piper
be49a06f04
AP_Vehicle: remove runcam singleton
2024-12-13 11:07:09 +00:00
Andrew Tridgell
6ac35ce9af
AP_Vehicle: use update_dynamic_notch() directly in rate loop
2024-12-04 07:45:05 +11:00
Iampete1
38c3257151
AP_Vechicle: add AP_Servo_Telem and call at 50Hz
2024-12-03 07:38:17 +11:00
Peter Barker
f60d059618
AP_Vehicle: create and use a singleton for SRV_Channels
...
avoid creation of static pointers to objects held within SRV_Channels
2024-11-13 19:47:49 +11:00
Peter Barker
8c6a427107
AP_Vehicle: correct compilation when network port registering disabled
...
the ports member doesn't exist in this case
2024-08-13 10:46:45 +10:00
Andy Piper
fd19c3f401
AP_Vehicle: support per-motor throttle based notches
2024-08-07 18:45:50 +10:00
Nicole Ashley
126d54bc93
AP_Vehicle: Initialise i-BUS telemetry when enabled
2024-08-07 14:01:44 +10:00
Thomas Watson
4cb684e8a9
AP_Vehicle: initialize scripting serial device sim ports early
...
Necessary for mavlink in particular to notice the port and hook up the
protocol internally.
2024-06-27 12:00:18 +10:00
Andrew Tridgell
6a96df4792
AP_Vehicle: use NEW_NOTHROW for new(std::nothrow)
2024-06-04 09:20:21 +10:00
Peter Barker
fe9bcb9b5b
AP_Vehicle: cope with AP_Scheduler not being available
2024-04-18 08:25:15 +10:00
Iampete1
03b00cb906
AP_Vehicle: call uart_log in one_Hz_update
2024-04-09 10:00:50 +10:00
Peter Barker
bafd73ba14
AP_Vehicle: allow HarmonicNotches to be compiled out of the code
2024-03-19 07:04:13 +11:00
Andrew Tridgell
e18983780f
AP_Vehicle: removed the clamping of notch filters at vehicle level
...
moved the claiming down into HarmonicNotchFilter
2024-03-16 06:54:27 +11:00
Patrick José Pereira
16926a2df8
AP_Vehicle: Use new default for reboot
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2024-03-12 21:13:41 +11:00
Peter Barker
e22a00680b
AP_Vehicle: correct define around SRV_Channels init call
2024-03-12 09:10:22 +11:00
Peter Barker
bff8688ac9
AP_Vehicle: add and use AP_CUSTOMROTATIONS_ENABLED
...
also add to build_options.py
2024-03-03 08:22:46 +11:00
Peter Barker
32abb5b0ad
AP_Vehicle: move serial_manager parameters up to base class
2024-02-29 12:12:19 +11:00
Peter Barker
b623b8ec94
AP_SerialManager: move serial_manager parameters up to base class
2024-02-29 12:12:19 +11:00
Peter Barker
9bdb886bb8
AP_Vehicle: move gripper up to AP_Vehicle
...
also make the singleton return a reference rather than a pointer
2024-02-21 21:05:12 +11:00
Peter Barker
84913569cd
AP_Vehicle: correct compilation when AHRS not available
...
CubeOrange-periph-heavy was broken
2024-02-13 11:37:00 +11:00
Peter Barker
0694154f1c
AP_Vehicle: move logger object up to AP_Vehicle
2024-02-13 10:54:29 +11:00
Peter Barker
185396ee27
AP_Vehicle: compile with AHRS not available
2024-02-10 11:47:10 +11:00
Peter Barker
04ae9879f3
AP_Vehicle: compile without scheduler
2024-02-10 11:47:10 +11:00
Peter Barker
a949b52b5a
AP_Vehicle: add support for compiling arming out
2024-02-10 11:47:10 +11:00
Peter Barker
6da7cfcf4e
AP_Vehicle: move scripting up to AP_Vehicle
2024-02-07 18:24:12 +11:00
Peter Barker
e660a1925e
AP_Vehicle: move can_mgr.init call up to AP_Vehicle
...
... also adds the call for Blimp...
2024-02-06 11:03:54 +11:00
Peter Barker
94be9cb8b6
AP_Vehicle: move call to BoardConfig.init to AP_Vehicle
2024-02-01 07:59:11 +11:00
Peter Barker
652d2ec198
AP_Vehicle: move AP_Stats to AP_Vehicle
2024-01-30 11:12:21 +11:00
Peter Barker
1b288416e1
AP_Vehicle: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Peter Barker
1183328266
AP_Vehicle: make AHRS attitude member variables private
2024-01-14 12:47:47 +11:00
Peter Barker
17f311ef32
AP_Vehicle: correct compilation when AP_MISSION_ENABLED is false
2024-01-03 16:16:47 +11:00
Peter Barker
8e1fc60550
AP_Vehicle: correct compilation when AP_Vehicle not available
2023-12-13 18:34:40 +11:00
Iampete1
433f98fee1
AP_Vehicle: call scripting update from 1Hz loop
2023-12-05 11:03:58 +11:00
Andrew Tridgell
c61ee15c1f
AP_Vehicle: init networking after serial manager
...
init before serial manager led to not seeing any error messages if net
init failed
2023-12-04 10:12:41 +11:00