Skip to content

Conversation

bastianhjaeger
Copy link
Contributor

@bastianhjaeger bastianhjaeger commented Apr 29, 2025

Solved Problem

No existing SIH for a boat.

Solution

  • Add SIH for boats.

Test coverage

  • Simulation testing with RC connected.
make px4_sitl sihsim_boat

@bastianhjaeger bastianhjaeger changed the title Boat sih Add boat SIH Apr 29, 2025
@hamishwillee
Copy link
Contributor

Very cool. When you're done, don't forget to add a docs update to https://docs.px4.io/main/en/sim_sih/

Copy link

No flaws found

@bastianhjaeger bastianhjaeger marked this pull request as ready for review April 30, 2025 08:37
@sfuhrer sfuhrer self-requested a review May 5, 2025 11:49
@github-actions github-actions bot added the stale label Jun 5, 2025
@hamishwillee
Copy link
Contributor

Seems to have got a little out of date :-(

Copy link
Contributor

@sfuhrer sfuhrer left a comment

Choose a reason for hiding this comment

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

Sorry that one would have been on my to review.

I'm now handing off further reviews to @chfriedrich98 - he's currently on adding SIH for rovers, which is a work item very closely related to to this here.


param set-default SIH_VEHICLE_TYPE 4 # sih as boat

#param set-default SIH_MASS 3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Better delete unused parameters

#!/bin/sh
# Standard apps for an boat.

# Start rover ackermann module.
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment that this is only short-term until we have boat controller.

generate_fw_aerodynamics(_u[4], _u[5], _u[6], 0);

} else if (_vehicle == VehicleType::Boat) {
// _T_B = Vector3f(_T_MAX * _u[1], 0.0f, 0.0f); // forward thruster
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove dead code.

---help---
Enable support for simulator_sih

if MODULES_SIMULATION_SIMULATOR_SIH
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is that necessary? I don't see the same kconfig options for the other SIH vehicle types.

@hamishwillee
Copy link
Contributor

Thanks @sfuhrer !

@bastianhjaeger FYI You have some conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants