Daniel Agar
c319ea7189
boards sync fmu-v2 sensors start with fmu-v3
6 years ago
Daniel Agar
fef65bf5c8
ROMFS split rc.board into defaults, sensors, and extras
6 years ago
Beat Küng
d8ab059ff3
cm8jl65: add comment which CRC is used
6 years ago
Claudio Micheli
8a313ffc26
Applied code-review suggestions.
...
- Removed blocking serial.
- Added passing variables by reference to parser.
- Removed commented code.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
d1da46ef46
Added generic UART configuration.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
ca0cd27c6b
Formatted code.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
7124cbf3af
Fixed CI broken build. Made TELEM2 default port.
...
Device port can be set via SENS_EN_CM8JL65 parameter:
SENS_EN_CM8JL65 = 0 -> Disabled
SENS_EN_CM8JL65 = 1 -> Enabled on TELEM2
SENS_EN_CM8JL65 = 2 -> Enabled on TELEM1
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
e4381bfc87
Added sensor enable/disable parameter (SENS_EN_CM8JL65).
...
Disabled by default.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
46c5a79b57
Renamed files according to distance sensor hardware.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
aee6a83fe0
Code Cleanup. Added configuration notes.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
c5fece6568
Redefined reading strategy from serial to get the latest available data.
...
First "stable" version of the driver.
TODO: - Cleanup the code
- Bench test (compare data with IMU)
- Flight Test
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
39ed84b5cd
Debugging printf.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
5d70ac7fd9
Removed dismissed folder.
...
TODO : Adjust work_queue rescheduling (to always have a 10Hz cycle)
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
b0ac8fe963
Removed blocking "while" cycle to access serial port.
...
Serial is now cycled with work_queue rescheduling if some bytes are missing.
TODO: - Fix occasional sensor spikes (can be identified with crc)
- Clean up the code
- disable debug printf
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
93b3cf241b
Renamed driver folder.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
dd300dca0a
Solved frequency rate issue. Now driver publish at ~10Hz.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
4b7be38e67
Added uORB publishing.
...
TODO: Need to fix driver cycling.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
700fd5652d
Added parsing function. Everything works OK.
...
TODO:
- Clean up the code
- Add uORB publishing messages
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Claudio Micheli
591e8fde5d
Initial commit. Integrated new distance sensor hardware.
...
TODO: Parsing the data
Signed-off-by: Claudio Micheli <claudio@auterion.com>
6 years ago
Daniel Agar
63097bd8a1
mavlink sort message defaults and float literal consistency
6 years ago
Matthias Grob
1e14b10dee
simulator_mavlink: take care of battery percentage rounding errors
...
In 5bb9babc20
I made MAVLink send a
rounded up integer instead of rounded down. This makes sense in practice
because the low battery reactions happen exactly when the reported number
switches in the UI. But here we want to provoke an exact 50% in the UI so
we stop counting at 49.9%, it get's rounded up and we see the expected
result.
6 years ago
Matthias Grob
a89e550f3c
simulator_mavlink: switch battery max and min to fix simultion
...
In 3e6e1f5c2b
the simulated battery
percentage was reversed. I'm assuming because of the possibly
missleading variable name. Now I'm fixing it by switching the
maximum and minimum voltage such that the name is not misleading anymore
but it still works as expected.
6 years ago
bresch
766f911005
beta75 - Reduce MC_YAWRATE_P to avoid oscillations when battery is fully charged
6 years ago
bresch
118848d261
beta75 - Adjust PWM_MIN and set number of cells
6 years ago
Jacob Dahl
29f034c53e
mpu9250 fix hardfaults if attempting to start an already running driver ( #11190 )
...
* removed bus options that were essentially duplicates, causing hardfaults if attempting to start an already running driver. Changed NULL to nullptr. Removed bus options that were unused
* removed condition from if statement that was unnecessary
* fixed style
6 years ago
Beat Küng
4bc59092f4
lockstep_scheduler cmake: spaces -> tabs
6 years ago
Beat Küng
2a47715385
refactor lockstep_scheduler: fix class member naming convention
6 years ago
Beat Küng
828e31d3a9
lockstep_scheduler: optimize performance
...
- use a linked-list instead of std::vector. Insertion and removal are now
O(1)
- avoid malloc and use a thread_local instance of TimedWait.
It gets destroyed when the thread exits, so we have to add protection
in case a thread exits too quickly. This in turn requires a fix to the
unit-tests.
6 years ago
Beat Küng
b6ba7b655a
sitl_run.sh: fix for debugger & valgrind invocation: use eval
...
Because $sitl_command contains quotes
6 years ago
Beat Küng
beac53d775
cdev_platform: remove unused code (sim_delay)
6 years ago
Beat Küng
ecbe2a3e0b
drv_hrt posix: improve performance for hrt_absolute_time()
...
Previously hrt_absolute_time() was at around 5% of the total CPU usage, now
it's around 0.35%.
6 years ago
Beat Küng
ccefc640ac
drv_hrt posix: remove unused code and remove locking from hrt_absolute_time
6 years ago
Beat Küng
5f0e6d70c5
lockstep_scheduler: use a static lock in usleep_until
...
less function calls
6 years ago
Beat Küng
e8cbc49f7a
lockstep_scheduler: remove timed_waits_iterator_invalidated_
...
Not required, since the lock is held during the whole loop iteration.
6 years ago
Beat Küng
8cdb65eed9
lockstep_scheduler: simplify LockstepScheduler::cond_timedwait & reduce locking
...
- the loop is not needed
- we optimize for the fast case and lock only if really needed
6 years ago
Beat Küng
318499f56e
lockstep_scheduler: inline get_absolute_time()
...
This is a small method that is used a lot.
6 years ago
Daniel Agar
29a0950753
Update submodule mavlink v2.0 to latest Sat Jan 12 07:37:26 EST 2019
...
- mavlink v2.0 in PX4/Firmware (4787cabae6fcf55ef0f8bf19b0009de593c844db): 90d9b285e0
- mavlink v2.0 current upstream: 339abb5f4c
- Changes: 90d9b285e0...339abb5f4c
6 years ago
Daniel Agar
45d7165eb3
fw_pos_control_l1 skip wind > max airspeed logic if airspeed invalid
...
- cleanup airspeed validity check logic
6 years ago
Julian Oes
2e3fa30c83
sitl_gazebo: update to revision that doesn't abort on timeout ( #11196 )
...
* this should fix the CI failures where we intermittently saw SIGABRT. (fixes #11144 )
6 years ago
Jacob Dahl
f6175605cd
px4_fmu-v4 init: Do not start mavlink stream on ttyS0 for the TealOne airframe
...
* We have RAM problems and can't afford 4 mavlink instances. This only adds logic the rc.board for the fmu-v4 that only has an effect for SYS_AUTOSTART = 4250 (TealOne airframe).
6 years ago
Daniel Agar
92ca26b111
mpu9250 fix code style
6 years ago
Florian Olbrich
fb386580b8
Fixed failure notices on mpu9250 startup by adding back device probing on I2C interface init.
6 years ago
Florian Olbrich
280a60c86f
Fixed unreliable ICM20948 detection.
...
Fixed ICM20948 magnetometer only option.
Specified bus for internal mpu9250 on Pixhawk 2.1 to avoid premature detection of
other device.
6 years ago
Beat Küng
c2f82b5996
logger: disable mission log by default (SDLOG_MISSION=0)
...
- I enabled it by default mostly for testing purposes
- Disabling it reduces resource usage as most setups don't need it
6 years ago
Kevin Lopez Alvarez
490eeeb9d9
RM3100: enable I2C ( #11038 )
6 years ago
Jake Dahl
1699c577c3
Fixed an issue with a local variable that should have been a member variable. Increased the P term to reduce rise time. Removed feedforward as it was not neccessary. Removed some custom commands that didn't serve much of a purpose.
6 years ago
AnnaDaiZH
3b3752b753
pmw3901 increase publish rate and max_ground_distance ( #11066 )
...
* increase pmw3901 publish rate and max_ground_distance
* set work queue to high priority
6 years ago
David Sidrane
5e53f73ad8
fmu-v5:Add Alias CUAV V5 REV:5, VER:1
6 years ago
Daniel Agar
ea3a694ffe
Update submodule mavlink v2.0 to latest Tue Jan 8 12:41:26 UTC 2019
...
- mavlink v2.0 in PX4/Firmware (613a5f5e172de071ebd96b4cb5313316a10f8023): 175ab6725c
- mavlink v2.0 current upstream: 90d9b285e0
- Changes: 175ab6725c...90d9b285e0
6 years ago
Julian Oes
b0dd55e80b
jMAVSim: update submodule
...
This should fix:
- HITL regression (Init MAVLink forever).
- Starting using default arguments.
6 years ago