Skip to content
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

Merged
merged 313 commits into from
Feb 21, 2017
Merged

ArduSub Merge #5678

merged 313 commits into from
Feb 21, 2017

Conversation

jaxxzer
Copy link
Member

@jaxxzer jaxxzer commented Feb 7, 2017

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.

// 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
Copy link
Contributor

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!

Copy link
Contributor

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

failsafe.last_leak_warn_ms = tnow;
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Leak Detected");
gcs_send_text(MAV_SEVERITY_WARNING, "Leak Detected");
Copy link
Contributor

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.

Copy link
Contributor

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

@@ -0,0 +1,72 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -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) {
Copy link
Contributor

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!

Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love that ^^

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha!

Aircraft(home_str, frame_str),
frame(NULL)
{
frame = Frame::find_frame(frame_str);
Copy link
Contributor

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

Copy link
Member Author

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 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

miss a space

Copy link
Contributor

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

@@ -348,6 +349,12 @@ def wait_unlimited():
"waf_target": "bin/ardurover",
"default_params_filename": "default_params/rover-skid.parm",
},
# SUB
"vectored": {
Copy link
Contributor

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 !

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

"vectored": {
"model": "vectored",
"waf_target": "bin/ardusub-vectored",
"default_params_filename": "Sub.parm",
Copy link
Contributor

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

Copy link
Contributor

@khancyr khancyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaxxzer jaxxzer force-pushed the sub-merge branch 3 times, most recently from f7fcf57 to 6d0888a Compare February 7, 2017 17:27
@magicrub
Copy link
Contributor

magicrub commented Feb 7, 2017

370 commits is getting a bit crazy...

@jaxxzer jaxxzer force-pushed the sub-merge branch 3 times, most recently from e23477e to 5b1f903 Compare February 7, 2017 20:44
@tridge
Copy link
Contributor

tridge commented Feb 7, 2017

@magicrub I think its fine to have a large number of commits for what is really merging two projects.

@jaxxzer jaxxzer force-pushed the sub-merge branch 2 times, most recently from 75019bd to 4d16d50 Compare February 7, 2017 23:17
@tridge
Copy link
Contributor

tridge commented Feb 7, 2017

@jaxxzer I think this PR could benefit from this one: #5689

@jaxxzer
Copy link
Member Author

jaxxzer commented Feb 8, 2017

@tridge I am very interested in using that, thanks for putting it together.
@magicrub I am cutting it down a bit, and removing the messier bits of our developments in libraries.

@jaxxzer jaxxzer force-pushed the sub-merge branch 7 times, most recently from 2ce2bd8 to 0f7d9c0 Compare February 8, 2017 20:19
@OXINARF
Copy link
Member

OXINARF commented Feb 20, 2017

@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.

@jaxxzer
Copy link
Member Author

jaxxzer commented Feb 20, 2017

@OXINARF Fixed, thanks.

@tridge tridge merged commit ec0b073 into ArduPilot:master Feb 21, 2017
@jaxxzer jaxxzer deleted the sub-merge branch July 22, 2017 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants