bluesky icon indicating copy to clipboard operation
bluesky copied to clipboard

ALT Command

Open kliu14146 opened this issue 1 year ago • 2 comments

Hi all,

I'm trying to implement a simulator that takes action commands to control a plane at each timestep. So far, I have been creating aircraft using "CRE", and simulating them in 2d using "MOVE" and changing the "hdg" and "spd" fields based on some action input that increments these values. I'd like to extend this environment to the 3d case and control altitude at each timestep in a similar way.

I've tried using "ALT" and specifying "alt" and "vspd", but I get a strange behavior when doing so. For example, if I specify only positive "vspd", and set "alt" to equal current altitude + ("vspd"/60)xDT where DT is the timestep increment in seconds the plane will only descend until it hits the ground. Am I misinterpreting the "ALT" or "MOVE" commands? Do I need to instantiate VNAV or some form of autopilot before being able to control altitude? Is there an area of the codebase where vertical climb dynamics are processed that I should take a look at?

Any help is greatly appreciated! Thank you for your work on this great tool -

kliu14146 avatar Sep 28 '22 22:09 kliu14146

Thanks, we will check what happens in this specific case of using the current altitude as selected altitude. It should go to ALT HOLD.

In general: Vertical speed only works with an altitude command for a different altitude than the current altitude. It is an extra specification of the ALT command. This also means you can not use the V/S without a target altitude.

Does this answer help already?

Best regards, Jacco Hoekstra

On 29 Sep 2022, at 00:58, kliu14146 @.***> wrote:



Hi all,

I'm trying to implement a simulator that takes action commands to control a plane at each timestep. So far, I have been creating aircraft using "CRE", and simulating them in 2d using "MOVE" and changing the "hdg" and "spd" fields based on some action input that increments these values. I'd like to extend this environment to the 3d case and control altitude at each timestep in a similar way.

I've tried using "ALT" and specifying "alt" and "vspd", but I get a strange behavior when doing so. For example, if I specify only positive "vspd", and set "alt" to equal current altitude + ("vspd"/60)xDT where DT is the timestep increment in seconds the plane will only descend until it hits the ground. Am I misinterpreting the "ALT" or "MOVE" commands? Do I need to instantiate VNAV or some form of autopilot before being able to control altitude? Is there an area of the codebase where vertical climb dynamics are processed that I should take a look at?

Any help is greatly appreciated! Thank you for your work on this great tool -

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/TUDelft-CNS-ATM/bluesky/issues/428__;!!PAKc-5URQlI!-GxkSBdktY-cmDH4LsF42HlqswjqwEIk3jiwfUcwVbahp2Zlx7BCPazhFEnqEWW3VFObaVJL1CGGXjIqmIkbNgZfOJR0OQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABWT2BHC6BLD6WJRYQ2QDDLWATERJANCNFSM6AAAAAAQYHHQVU__;!!PAKc-5URQlI!-GxkSBdktY-cmDH4LsF42HlqswjqwEIk3jiwfUcwVbahp2Zlx7BCPazhFEnqEWW3VFObaVJL1CGGXjIqmIkbNgZ4p6JRQw$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ProfHoekstra avatar Sep 29 '22 06:09 ProfHoekstra

I see ok - thanks for the quick answer. I have been using a different target altitude than the current altitude, with a positive climb rate. Should this still be producing a rapid altitude loss? The plane speed is set to a reasonably high value.

Thanks for your help -

kliu14146 avatar Sep 29 '22 07:09 kliu14146

No, that does not sound good. Can you given me the exact scenario file or commands you use? Then I can see what is going on.

From: kliu14146 @.> Sent: donderdag 29 september 2022 09:35 To: TUDelft-CNS-ATM/bluesky @.> Cc: Jacco Hoekstra - LR @.>; Comment @.> Subject: Re: [TUDelft-CNS-ATM/bluesky] ALT Command (Issue #428)

I see ok - thanks for the quick answer. I have been using a different target altitude than the current altitude, with a positive climb rate. Should this still be producing a rapid altitude loss? The plane speed is set to a reasonably high value.

Thanks for your help -

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/TUDelft-CNS-ATM/bluesky/issues/428*issuecomment-1261883648__;Iw!!PAKc-5URQlI!-vv5tFxiivIKSCFjhJfyliTQQWHhMGVA-xUgSJ1sfYotT3rCB1s3_MyV1I5ci-bw1LRjS7FcSmXZihIj37ro4IWRv1VG0A$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ABWT2BHUFXHIYWL6A3ZVTBDWAVBA3ANCNFSM6AAAAAAQYHHQVU__;!!PAKc-5URQlI!-vv5tFxiivIKSCFjhJfyliTQQWHhMGVA-xUgSJ1sfYotT3rCB1s3_MyV1I5ci-bw1LRjS7FcSmXZihIj37ro4IWPJspwRQ$. You are receiving this because you commented.Message ID: @.@.>>

ProfHoekstra avatar Oct 11 '22 08:10 ProfHoekstra