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
Add new flight mode: Airspeed (only for fixed-wing flight) - continued #18419
base: main
Are you sure you want to change the base?
Conversation
ace8e60
to
59ee1aa
Compare
@dagar Is there something wrong with caching on github actions? This PR builds and runs on my local machine, but somehow fails on github actions |
I hope not, but I'll take a look... |
@dagar It took a while that that header was being generated and I was editing a generated file. Sorry about the confusion |
c3819a8
to
ead423a
Compare
ead423a
to
7cdd754
Compare
Rebased due to conflict |
Hi! This new flight mode is actually what I looking for in the case of an unpowered flight. Would be nice, if it could be merged soon. |
@kaklik We need a flight test for this to be merged. Would you be interested on testing this? |
@@ -16,7 +16,8 @@ uint8 MAIN_STATE_AUTO_LAND = 11 | |||
uint8 MAIN_STATE_AUTO_FOLLOW_TARGET = 12 | |||
uint8 MAIN_STATE_AUTO_PRECLAND = 13 | |||
uint8 MAIN_STATE_ORBIT = 14 | |||
uint8 MAIN_STATE_MAX = 15 | |||
uint8 MAIN_STATE_AIRSPEED = 15 |
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.
Steal the legacy rattitude slot?
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
Hi @Jaeyoung-Lim, I think we are able to do such a flight test with our TF-G2 autogyro. (TF-G2 is currently controlled by FW controllers) We would need a few things to do that:
|
7cdd754
to
0a5c249
Compare
@@ -527,6 +537,10 @@ bool set_nav_state(vehicle_status_s &status, actuator_armed_s &armed, commander_ | |||
status.nav_state = vehicle_status_s::NAVIGATION_STATE_STAB; | |||
break; | |||
|
|||
case commander_state_s::MAIN_STATE_AIRSPEED: | |||
status.nav_state = vehicle_status_s::NAVIGATION_STATE_AIRSPEED; |
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.
Should we only allow entering this mode if airspeed is currently valid?
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.
I think we should yes, it's of no use in case of invalid airspeed.
We can also think about using it as failsafe mode from Altitude mode in case of invalid altitude estimation.
Hi, I assume the line 2272 should be PX4-Autopilot/src/modules/fw_pos_control_l1/FixedwingPositionControl.cpp Lines 2270 to 2282 in 0a5c249
|
Hi @Jaeyoung-Lim we plan to do some flight tests tomorrow. And we could test this airspeed mode. But I can't enter intu airspeed mod in simulator (in FlightGear). Specifically, it was this commit I tried to takeoff in the simulator and do the command in flight:
How I can enter into flight mode? |
Hi, we made two successful attempts with airspeed mode. Booth tests were done with TF-G2 autogyro. First tryThere was a logging issue on the first try. So we don't have a log. It was very interesting to control such a setting and it gave the dron completely different properties. For certain flights, such flight mode certainly make sense. Switching to this mode was done from the command line with the command Second tryDuring the test, we wanted to do more partial tests (because it was a long time after which we have a log) for example, automatic autogyro takeoff (#18582) and other test verifying the new properties of the autogyro. Therefore, the flight in airspeed mode was short. It was twice a climb and a motorless descend. No problem with airspeed was observed this time either. And the controls were pretty good. log: https://review.px4.io/plot_app?log=be4b0ce6-b51c-4826-907d-f980df96fbc1 I noticed strange things in the log, that the use of RAM at the time of switching to airspeed mode has increased a bit. Next usageIn the near future, we would like to use this flight mode to launch our TF-G2 autogyro from a stratospheric balloon. Without a motor. This mode will be suitable for such an experiment. |
Describe problem solved by this pull request
#17924 continued with the new structure of #18340 included
Test data / coverage
Additional context