update:左手举手状态修改&音乐跳绳位置

This commit is contained in:
tanglong 2026-03-09 16:39:59 +08:00
parent 7cebbd72d1
commit 8a87174480
3 changed files with 4 additions and 4 deletions

View File

@ -225,7 +225,7 @@ namespace Wpf_AiSportsMicrospace.Common
bool pass = calculator.Calculating(human, ruleLeft); bool pass = calculator.Calculating(human, ruleLeft);
return pass ? (int)WavingAction.Raising : (int)WavingAction.None; return pass ? (int)WavingAction.RaiseHand : (int)WavingAction.None;
} }
public bool IsAnyFootInCircle(Human h, double cx, double cy, double halfW, double halfH) public bool IsAnyFootInCircle(Human h, double cx, double cy, double halfW, double halfH)

View File

@ -175,8 +175,8 @@ namespace Wpf_AiSportsMicrospace
else else
{ {
//var newPage = new TrainingRecords(); //var newPage = new TrainingRecords();
var newPage = new WhackAMole(); //var newPage = new WhackAMole();
//var newPage = new StandingLeap(); var newPage = new StandingLeap();
mainWin?.SwitchPageWithMaskAnimation(newPage, true); mainWin?.SwitchPageWithMaskAnimation(newPage, true);
} }
} }

View File

@ -81,7 +81,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope
var cfg = await db.GroupPoints.FirstOrDefaultAsync(x => x.Code == AppSettings.Code); var cfg = await db.GroupPoints.FirstOrDefaultAsync(x => x.Code == AppSettings.Code);
//var pointlist = JsonSerializer.Deserialize<List<(double, double)>>(cfg!.PointsJson); //var pointlist = JsonSerializer.Deserialize<List<(double, double)>>(cfg!.PointsJson);
List<(double XNorm, double YNorm)> pointlist = [(cfg.ControlPoint.X, cfg.ControlPoint.Y), (cfg.Point3.X, cfg.Point3.Y)]; List<(double XNorm, double YNorm)> pointlist = [(cfg.ControlPoint.X, cfg.ControlPoint.Y), (cfg.Point5.X, cfg.Point5.Y)];
_musicJumpRopeContext.UpdateCirclePositions(pointlist); _musicJumpRopeContext.UpdateCirclePositions(pointlist);
_mainWin.HumanFrameUpdated += OnHumanFrameUpdated; _mainWin.HumanFrameUpdated += OnHumanFrameUpdated;