-
Notifications
You must be signed in to change notification settings - Fork 16.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArduSub Merge #5678
ArduSub Merge #5678
Conversation
ArduSub/defines.h
Outdated
// EKF failsafe definitions (FS_EKF_ACTION parameter) | ||
#define FS_GCS_DISABLED 0 // Disabled | ||
#define FS_GCS_WARN_ONLY 1 // Only send warning to gcs (only useful with multiple gcs links) | ||
#define FS_GCS_DISARM 2 // Disarm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor correction to align everything!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget, has been handle later
ArduSub/events.cpp
Outdated
failsafe.last_leak_warn_ms = tnow; | ||
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Leak Detected"); | ||
gcs_send_text(MAV_SEVERITY_WARNING, "Leak Detected"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be interesting to log or notify when the first leak was detect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget, has been handle later
libraries/SITL/SIM_Submarine.cpp
Outdated
@@ -0,0 +1,72 @@ | |||
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed as a global file handle this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
ArduSub/radio.cpp
Outdated
@@ -61,6 +61,15 @@ void Sub::init_rc_in() | |||
// set default dead zones | |||
default_dead_zones(); | |||
|
|||
// initialize rc input to 1500 on control channels (rather than 0) | |||
for(int i = 0; i < 7; i++) { | |||
if(i == 4) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
miss a space after if. Nice trick ! I will add this to rover too !! will prevent some current problem!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget, has been handle later
void Submarine::update(const struct sitl_input &input) | ||
{ | ||
// get wind vector setup | ||
update_wind(input); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love that ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha!
libraries/SITL/SIM_Submarine.cpp
Outdated
Aircraft(home_str, frame_str), | ||
frame(NULL) | ||
{ | ||
frame = Frame::find_frame(frame_str); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this could be improve later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will have to work on this some more.
@@ -91,6 +92,7 @@ static const struct { | |||
{ "balloon", Balloon::create }, | |||
{ "plane", Plane::create }, | |||
{ "calibration", Calibration::create }, | |||
{ "vectored", Submarine::create }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
miss a space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget, has been handle later
Tools/autotest/sim_vehicle.py
Outdated
@@ -348,6 +349,12 @@ def wait_unlimited(): | |||
"waf_target": "bin/ardurover", | |||
"default_params_filename": "default_params/rover-skid.parm", | |||
}, | |||
# SUB | |||
"vectored": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to have sub or sub-vectored to better identification and allow other sub type !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks.
Tools/autotest/sim_vehicle.py
Outdated
"vectored": { | ||
"model": "vectored", | ||
"waf_target": "bin/ardusub-vectored", | ||
"default_params_filename": "Sub.parm", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
param should be move in default_params directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
f7fcf57
to
6d0888a
Compare
370 commits is getting a bit crazy... |
e23477e
to
5b1f903
Compare
@magicrub I think its fine to have a large number of commits for what is really merging two projects. |
75019bd
to
4d16d50
Compare
2ce2bd8
to
0f7d9c0
Compare
Wish to use gcs() to return the gcs singleton
This experimental mode is no longer relevant
@jaxxzer The commits with messages Sub: Use AHRS_VEHICLE_SUBMARINE as AHRS vehicle class and * Sub: Use default StorageManager layout instead of copter layout* have their messages swapped - functionality is correct, but the message is for the other commit. |
@OXINARF Fixed, thanks. |
A less-fancy, more up-to-date PR for merging ArduSub. This is a continuation of #5655. I am creating this second pull request in order to avoid force pushing to bluerobotics master.