mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 17:49:49 +08:00
Fix bug in DL_SETTING (it was no longer possible to send 0. !)
This commit is contained in:
@@ -537,7 +537,7 @@ let create_ac = fun alert (geomap:G.widget) (acs_notebook:GPack.notebook) (ac_id
|
||||
Xml.Element("empty", [], [])
|
||||
in
|
||||
let dl_setting_callback = fun idx value ->
|
||||
if classify_float value = FP_normal then
|
||||
if classify_float value = FP_normal || classify_float value = FP_zero then
|
||||
dl_setting ac_id idx value
|
||||
else
|
||||
get_dl_setting ac_id idx
|
||||
|
||||
@@ -47,7 +47,7 @@ let one_ac = fun (notebook:GPack.notebook) ac_name ->
|
||||
let callback = fun idx value ->
|
||||
|
||||
let vs = ["ac_id", Pprz.String ac_id; "index", Pprz.Int idx] in
|
||||
if classify_float value = FP_normal then
|
||||
if classify_float value = FP_normal || classify_float value =FP_zero then
|
||||
let vs' = ("value", Pprz.Float value) :: vs in
|
||||
Ground_Pprz.message_send "dl" "DL_SETTING" vs'
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user