Daniel Agar
5e3701a365
Tools/check_submodules.sh: perform submodule sync again after first update to reach nested submodules
3 years ago
Jukka Laitinen
be1023f5e9
smbus_sbs: Define linker language for a header-only library
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Jukka Laitinen
d02a10b20f
Remove src/lib/drivers/accelerometer and gyroscope linking to drivers__device
...
These are pure uORB publishers, they don't link to drivers__device.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Matthias Grob
dd05cb3496
FlightTaskManualPosition: simplify optical flow limiting logic
3 years ago
Claudio Micheli
10e329ce9e
mc_pos_control: correct MPC_XY_CRUISE description
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
3 years ago
Matthias Grob
7ec8dd9d23
vehicle_constraints: remove deprecated speed_xy constraint
3 years ago
Jukka Laitinen
356de6ccf1
Factor cdc_acm_init away from px4_init
...
In protected build, this needs to go to user-space initialization as it
calls apps (sercon) and launches mavlink.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Jukka Laitinen
39c0c68167
print_load: Remove reference to CONFIG_MAX_TASKS
...
This is already removed from nuttx, and in posix the size of s->last_times
can be just checked with sizeof()
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Jukka Laitinen
9299a5c3f6
hrt: Add interface functions for latency counters
...
Add interface functions for fetching latency buckets and counters and use
those in perf_counter.cpp. This cleans up the usage of perf counters, when variables defined in hrt_drv are not referenced directly from perf.
This also enables implementing kernel-userspace interface for those for
nuttx protected/kernel build.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Jukka Laitinen
da51177382
Don't link sensors module to drivers__device
...
sensors module only works on uORB, it doesn't link to drivers__device
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Matthias Grob
ab9b9b1eac
boards: Add manual_control module to newly added boards
3 years ago
bresch
d47f9f155a
MC mixer: replace multirotor_motor_limits by control_allocator_status
...
CA: fix saturation computation
Since the CA matrix is normalized, the same scale applied to be used when using the effectiveness matrix
MCRateControl: use control_allocator_status to get saturation info
3 years ago
Jaeyoung-Lim
dd83ef1813
Fix fw position controller takeoff
...
This was introduced by a rebase
3 years ago
Matthias Grob
00905973c7
boards/kakutef7: remove dmesg to save flash
3 years ago
Matthias Grob
4aa0756d08
ManualControlSelector: correct parameter for any source according to documentation
3 years ago
Matthias Grob
fabf865411
Use backwards compatible manual_control_setpoint instead of manual_control_input
3 years ago
Matthias Grob
423aadcc4f
ManualControl: fix RC override
3 years ago
Matthias Grob
7e4a079e09
Commander: report when RC selected mode is not available
3 years ago
Matthias Grob
a593a51f05
Commander: fix mode initialization with RC
3 years ago
Matthias Grob
9f17f3b0f3
ManualControl: correct source for RC mode switches without mode slot
3 years ago
Matthias Grob
21739c6937
MulticopterRateControl: Add event for landing gear retraction when landed
3 years ago
Matthias Grob
2b29df06fd
ManualControl: avoid scheduling based on unchosen input
3 years ago
Matthias Grob
48869ed03e
ManualControl: Simplify check if switches updated
3 years ago
Matthias Grob
38ab7e6ab9
Commander: separate function for action request execution
3 years ago
Matthias Grob
820ba07d4b
Fix landing gear processing
3 years ago
Matthias Grob
0a02d8e774
Commander: handle denying disarm when not landed centrally
3 years ago
Matthias Grob
af54ac7cdb
ManualControl: remove unused variables and renaming
3 years ago
Matthias Grob
e73e6a490d
ManualControl: separate function for stick arming
3 years ago
Matthias Grob
a349dae760
Use action_request to command RC VTOL transitions
3 years ago
Matthias Grob
dcd26bd2b8
Commander: fix "Manual control lost" showing double in QGC
...
because of the missing tab in the deprecated message.
3 years ago
Matthias Grob
956997eb1e
Replace arm_request and mode_request with combined action_request
...
Which saves flash space, log size and is extensible to handle e.g.
the VTOL transition and future actions.
3 years ago
Matthias Grob
052e29267d
Use mode_request for RC mode switching
3 years ago
Matthias Grob
f8e4846851
Use arm_request for manual killing
3 years ago
Matthias Grob
af607e3040
Use separate arm_request instead of vehicle_command for RC arming
3 years ago
Matthias Grob
c4473bdab7
ManualControl: clean up arm/disarm gesture
3 years ago
Matthias Grob
48ed350b25
ManualControlSelector: simplification refactoring
...
- clang tidy did't like {bool} == true in a condition
- setpoint_from_input() got small enough ot just put in line
3 years ago
Matthias Grob
cc2ec09659
ManualControl: fix arm button logic during testing
...
The latching logic has to be different than for the arm switch
this difference got lost in the rewrite of the old obfuscated
arming trigger logic.
3 years ago
Matthias Grob
0901b73f50
ManualControlSelector: rename functions and validate chosen inputs all the time
3 years ago
Matthias Grob
28a29ad050
ManualControlSelector: revamp logic to switch when configuration is changed
3 years ago
Matthias Grob
05946ff0c6
mavlink_receiver: remove unused start_helper declaration
3 years ago
Matthias Grob
7a2ef4a917
Commander: don't publish RC_IN_MODE to vehicle_status
...
This just contains the content of the parameter which
is redundant and results in multiple sources of truth.
3 years ago
Matthias Grob
fff2de43a5
commander_params: update description based on ManualControlSelector
3 years ago
Matthias Grob
396bab52ad
ManualControlSelector: refactor selection to chose based on a single condition
3 years ago
Matthias Grob
1bd786c71a
ManualControlSelector: don't invalidate existing setpoint with other invalid input
3 years ago
Matthias Grob
e15f6b27f2
ManualControlSelector: copy manual_control_input struct instead of each individual field
3 years ago
Matthias Grob
63ddb050ef
ManualControlSelector: refactor timeout calculation to be consistent
3 years ago
Matthias Grob
2528e8c572
ManualControl: correct calculation of dt in seconds
3 years ago
Matthias Grob
12bb2de175
state_machine_helper: rever explicitly handling unavaialble mission
...
It was already handled by the existing condition.
3 years ago
Matthias Grob
4dc165efd0
Commander: don't retry to reach the desired_main_state if we reached it
3 years ago
Matthias Grob
d48302c841
Commander: send out manual control lost event
3 years ago