AP_ADSB: Add valid parameter range to squawk codes

This commit is contained in:
Dr.-Ing. Amilcar do Carmo Lucas 2018-07-09 14:06:18 +02:00 committed by Tom Pittenger
parent 33076be585
commit c9bbc2773d
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ const AP_Param::GroupInfo AP_ADSB::var_info[] = {
// @Param: SQUAWK
// @DisplayName: Squawk code
// @Description: VFR squawk (Mode 3/A) code is a pre-programmed default code when the pilot is flying VFR and not in contact with ATC. In the USA, the VFR squawk code is octal 1200 (hex 0x280, decimal 640) and in most parts of Europe the VFR squawk code is octal 7000. If an invalid octal number is set then it will be reset to 1200.
// @Range: 0 7777
// @Units: octal
// @User: Advanced
AP_GROUPINFO("SQUAWK", 10, AP_ADSB, out_state.cfg.squawk_octal_param, ADSB_SQUAWK_OCTAL_DEFAULT),