Skip to content

Commit

Permalink
New autos have a starting pose by default (#406)
Browse files Browse the repository at this point in the history
* New autos have a starting pose by default

* apparently some macos entitlements have been missing this whole time
  • Loading branch information
mjansen4857 authored Oct 16, 2023
1 parent 0ad8631 commit 9169f37
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/auto/pathplanner_auto.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:convert';
import 'dart:math';

import 'package:file/file.dart';
import 'package:path/path.dart';
Expand Down Expand Up @@ -38,7 +39,8 @@ class PathPlannerAuto {
required this.autoDir,
required this.fs,
this.folder,
}) : sequence = SequentialCommandGroup(commands: []);
}) : sequence = SequentialCommandGroup(commands: []),
startingPose = Pose2d(position: const Point(2, 2));

PathPlannerAuto duplicate(String newName) {
return PathPlannerAuto(
Expand Down
2 changes: 2 additions & 0 deletions macos/Runner/DebugProfile.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<false/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
Expand Down
4 changes: 4 additions & 0 deletions macos/Runner/Release.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<key>com.apple.security.app-sandbox</key>
<false/>

<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.bookmarks.app-scope</key>
Expand Down

0 comments on commit 9169f37

Please sign in to comment.