Commit c8cd69e
committed
Add GPS Profile support.
This patch makes two major changes to address the current complexity of GPS Configuration.
GpsProfile, a new protobuf we use to configure a pre-tuned selection of GPS settings.
The aim is to replace the current 5 configuration options with a single user-friendly label that is
tailored to real-world Meshtastic use cases.
Based on a users selection of pedestrian, vehicle, or fixed position, we apply different settings to
GPS Update Interval, Position Broadcast Interval, Smart Broadcast Min Interval, Smart Broadcast Min Distance,
and Position Flags in firmware.
This should allow the apps to drastically simplify the position configuration shown to users.
In this patch we take advantage of the profie to support new features in firmware to improve the accuracy of our
position information. For example, taking advantage of advanced features in GPS hardware specific to each case.
Because of this, some erroneous positions will be discarded based on physically impossible movement.
More information about the selections for each use case is available in this [google sheet](https://docs.google.com/spreadsheets/d/1-f9z5zx2VCYqE6ivYXm-XqtLeVZSGMKpC3G3wma6-vw/edit?gid=633840990#gid=633840990)
As part of the config screen simplication, this patch deprecates PositionFlags,
which will now be selected in firmware based on the GPS Profile.
PositionFlags has long been seen as a complicated and confusing burden in the apps.
We determined that very few users use them, with the majority happy with the default set,
and some of the 'advanced' flags don't even work.
Depends on: meshtastic/protobufs#7491 parent 718fd11 commit c8cd69e
4 files changed
+173
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
224 | 238 | | |
225 | 239 | | |
226 | 240 | | |
| |||
535 | 549 | | |
536 | 550 | | |
537 | 551 | | |
538 | | - | |
539 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
540 | 567 | | |
541 | 568 | | |
542 | 569 | | |
| |||
555 | 582 | | |
556 | 583 | | |
557 | 584 | | |
558 | | - | |
559 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
560 | 598 | | |
561 | 599 | | |
562 | 600 | | |
| |||
571 | 609 | | |
572 | 610 | | |
573 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
574 | 619 | | |
575 | 620 | | |
576 | 621 | | |
| |||
583 | 628 | | |
584 | 629 | | |
585 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
586 | 639 | | |
587 | 640 | | |
588 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
589 | 653 | | |
590 | 654 | | |
591 | 655 | | |
| |||
629 | 693 | | |
630 | 694 | | |
631 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
632 | 703 | | |
633 | 704 | | |
634 | 705 | | |
| |||
652 | 723 | | |
653 | 724 | | |
654 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
655 | 741 | | |
656 | 742 | | |
657 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 626 | + | |
648 | 627 | | |
649 | 628 | | |
650 | 629 | | |
| |||
691 | 670 | | |
692 | 671 | | |
693 | 672 | | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | 673 | | |
701 | 674 | | |
702 | 675 | | |
| |||
746 | 719 | | |
747 | 720 | | |
748 | 721 | | |
| 722 | + | |
749 | 723 | | |
750 | 724 | | |
751 | 725 | | |
752 | 726 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | 727 | | |
765 | 728 | | |
766 | 729 | | |
| |||
775 | 738 | | |
776 | 739 | | |
777 | 740 | | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
778 | 812 | | |
779 | 813 | | |
780 | 814 | | |
| |||
905 | 939 | | |
906 | 940 | | |
907 | 941 | | |
| 942 | + | |
908 | 943 | | |
909 | 944 | | |
910 | 945 | | |
| |||
1214 | 1249 | | |
1215 | 1250 | | |
1216 | 1251 | | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1222 | 1256 | | |
1223 | 1257 | | |
1224 | 1258 | | |
| |||
1829 | 1863 | | |
1830 | 1864 | | |
1831 | 1865 | | |
1832 | | - | |
1833 | | - | |
| 1866 | + | |
| 1867 | + | |
1834 | 1868 | | |
1835 | 1869 | | |
1836 | 1870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
0 commit comments