Mark Charlebois
1ca05aaa64
orb_advert_t changed to void * and checks changed to nullptr
...
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.
Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
10 years ago
Mark Charlebois
180c8b0cb0
Missed another < 0 check
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
10 years ago
Mark Charlebois
b990d9fa7e
Missed a check for < 0
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
10 years ago
Mark Charlebois
a734fc96d1
extensive orb_advert_t fixes
...
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.
The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.
Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
10 years ago
Lorenz Meier
9a67303416
Merge pull request #2231 from jgoppert/lidar_lite_pwm_fix
...
Lidar lite driver fixes.
10 years ago
Lorenz Meier
92f67a923a
Make sure the build directory exists
10 years ago
Lorenz Meier
472ca323a1
Merge pull request #2239 from kd0aij/addRot_v100
...
add a new rotation to lib/conversion
10 years ago
Lorenz Meier
fd31354e77
Merge pull request #2211 from kd0aij/fmuv1_inav_q_v100
...
default to INAV/Q estimator on FMUv1
10 years ago
Ban Siesta
96bfe85ceb
fw_att_control: another ugly way to prevent a newline
10 years ago
Ban Siesta
d3fe6fd256
fw_att_control: whitespace
10 years ago
Ban Siesta
e2277bbe2d
fw_att_control: don't brag about being running
10 years ago
Ban Siesta
a7902c02a9
position_estimator_inav: be a bit more informative about this ominous offs
10 years ago
Ban Siesta
11f80ceb64
land_detector: get rid of one dot at a time
10 years ago
Ban Siesta
1734b97635
px4flow: tell the user which PX4FLOW couldn't be connected
10 years ago
Ban Siesta
43d22619f6
mavlink: no need to shout about disabling hardware flow control
10 years ago
Ban Siesta
321e1c1f7b
navigator: stop complaining about some geofence not cleared
10 years ago
James Goppert
57f5db544c
Distance sensor log precision fix.
10 years ago
James Goppert
3cc84b1a15
Correct ll40ls param enable length.
10 years ago
James Goppert
bef8851e8e
Merge branch 'mhkabir-ll40ls_startup' into lidar_lite_pwm_fix
10 years ago
James Goppert
cbc169af2f
Merge branch 'll40ls_startup' of https://github.com/mhkabir/Firmware into mhkabir-ll40ls_startup
...
Conflicts:
ROMFS/px4fmu_common/init.d/rc.sensors
10 years ago
James Goppert
6f309ba625
Distance sensor log fix.
10 years ago
Mark Whitehorn
db7d0ef51f
add a new rotation to lib/conversion
10 years ago
Mohammed Kabir
d06bdc0445
ll40ls : fix param typo
10 years ago
Mohammed Kabir
42358a60d1
ll40ls : conditional startup
10 years ago
Mohammed Kabir
853a22db18
ll40ls : conditional startup param
10 years ago
James Goppert
0b703096e7
Fixed distance sensor log error.
10 years ago
James Goppert
5955773574
Lidar lite driver fixes.
...
Conflicts:
src/modules/uORB/Subscription.cpp
10 years ago
Lorenz Meier
54fde63d66
FMU driver: Code style fix
10 years ago
Lorenz Meier
983243933d
PX4IO params: better documentation
10 years ago
Lorenz Meier
e3d7f0042a
FMU params: better documentation
10 years ago
Lorenz Meier
d54b931554
IO driver: auto update param
10 years ago
Lorenz Meier
2dd94b7f0f
FMU driver: auto param update
10 years ago
Lorenz Meier
129aa35fcd
FMU driver: Load channel reverse mask from parameters
10 years ago
Lorenz Meier
b155e97a54
Load IO params for mask
10 years ago
Lorenz Meier
c46c150a3d
Rename IO params
10 years ago
Lorenz Meier
3b3e98ed19
Rename FMU params
10 years ago
Lorenz Meier
30cd3e1d79
Mixer test: Support channel reversal
10 years ago
Lorenz Meier
a1232083fc
IO driver: Support pwm reversal, prepare config parameters
10 years ago
Lorenz Meier
e4a5ceb429
FMU driver: Support pwm reversal, prepare config parameters
10 years ago
Lorenz Meier
613b50b14f
IO firmware: Support pwm reversal
10 years ago
Lorenz Meier
3883b71132
pwm handler: Support channel reversal
10 years ago
Lorenz Meier
c6fe4fd35a
mavlink: rename field for RC input mode
10 years ago
Lorenz Meier
6253f6154f
commander: rename field for RC input mode
10 years ago
Lorenz Meier
2747093028
vehicle status: Rename field which controls RC input mode
10 years ago
Lorenz Meier
ee39d72747
Gyro sim: Add ringbuffer namespace
10 years ago
Lorenz Meier
e9c2dc563f
Baro sim: Add ringbuffer namespace
10 years ago
Lorenz Meier
5c535845ab
Airspeedsim: Add ringbuffer namespace
10 years ago
Lorenz Meier
2d090ddde4
Accelsim: Add ringbuffer namespace
10 years ago
Lorenz Meier
90281ca9e3
Sublime Text: Add posix target
10 years ago
Lorenz Meier
b399469477
Merge pull request #2240 from TSC21/mavlink_multiadvertise
...
mavlink: added multi advertise for distance_sensor in mavlink receiver
10 years ago