Skip to content

Commit

Permalink
mavproxy_SIYI: add setting to force strong gimballing
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Jul 11, 2024
1 parent 00afedf commit 0241454
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MAVProxy/modules/mavproxy_SIYI/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def __init__(self, mpstate):
MPSetting('thresh_climit_dis', int, 20, range=(10,50)),
MPSetting('thresh_volt_dis', int, 40, range=(20,80)),
MPSetting('thresh_ang_dis', int, 40, range=(30,4000)),
('force_strong_gimballing', bool, False),
('stow_on_landing', bool, True),
('stow_heuristics_enabled', bool, True),
('stow_heuristics_minalt', float, 20.0), # metres above terrain
Expand Down Expand Up @@ -988,7 +989,11 @@ def parse_packet(self, pkt):
self.logf.write('SITH', 'Qhhh', 'TimeUS,WLimit,VThresh,AErr',
self.micros64(),
climit, volt_thresh, ang_thresh)
if self.master.motors_armed():

do_strong_gimballing = self.master.motors_armed()
if self.siyi_settings.force_strong_gimballing:
do_strong_gimballing = True
if do_strong_gimballing:
new_thresh = (self.siyi_settings.thresh_climit,
self.siyi_settings.thresh_volt,
self.siyi_settings.thresh_ang)
Expand Down

0 comments on commit 0241454

Please sign in to comment.