Gold856
b39744b562
[wpimath] Remove PathWeaver support ( #7813 )
...
Also rename file load type in glass to "Field Image JSON".
2025-02-21 07:43:45 -07:00
DeltaDizzy
da47f06d70
[datalog] Move all DataLog functionality to new datalog library ( #7641 )
...
Currently the major DataLog backend API (reading and writing) is split between wpiutil and glass. In the interest of allowing code that wants to use these APIs to not need to link to glass and declutter wpiutil, all of those APIs are moved to a new library named "datalog".
Signed-off-by: Jade Turner <spacey-sooty@proton.me >
Co-authored-by: Jade Turner <spacey-sooty@proton.me >
Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com >
2025-02-19 21:08:17 -08:00
Thad House
5a6c895b87
[hal, wpilib] Remove built in accelerometer ( #7702 )
2025-01-17 14:06:09 -08:00
Thad House
f80874dd4b
[hal, wpilib] Remove analog accumulator and analog gyro ( #7697 )
...
The 2 high level classes were temporarily kept to keep the examples compiling. We will remove those when we have the interface into the built in IMU.
2025-01-17 12:58:31 -08:00
Thad House
ff1b2a205e
[hal, wpilib] Remove analog output ( #7696 )
2025-01-16 23:20:44 -08:00
Thad House
5017393b3a
[hal, wpilib] Remove relay ( #7695 )
2025-01-16 23:20:07 -08:00
Peter Johnson
d9f8fded09
Merge branch 'main' into 2027
2025-01-16 23:17:59 -08:00
Ryan Heuer
8e459a4f2a
[glass] Field2d: Fix custom image padding to maintain aspect ratio ( #7648 )
2025-01-06 21:16:14 -08:00
sciencewhiz
7032de3d5d
[glass] Field2D: Change field picker to show JSONs first ( #7643 )
...
Too many people don't realize that glass/simgui field2d can load
pathweaver JSON field files since it's hidden.
2025-01-05 22:36:14 -08:00
Peter Johnson
0f6693594c
[glass] Split DataSource into type-specific variants ( #7588 )
2025-01-03 13:36:40 -08:00
Wispy
17a03514ba
[glass, simgui] Fix minimum widths of windows ( #7604 )
2025-01-01 15:20:35 -08:00
Ryan Blue
8588b5e520
[glass] Revert "Storage: Store Value by value" ( #7333 )
...
This reverts commit 309b370223 .
Storage::GetChildArray never initializes the child array when the entry is new, so it returns invalid references.
2024-11-04 23:34:18 -07:00
Peter Johnson
e49d452e46
[glass] Context: Store storageRoots by value
2024-10-31 22:04:13 -07:00
Peter Johnson
5c0edc2410
[glass] Field2D: Store field objects by value
2024-10-31 22:04:13 -07:00
Peter Johnson
309b370223
[glass] Storage: Store Value by value
...
This is possible because std::map has stable value pointers.
2024-10-31 22:04:13 -07:00
Peter Johnson
f620141e0d
[wpiutil] Replace LLVM StringMap impl with std::map
...
As string_view operations on std::map<std::string> won't be integrated
until C++26, placeholder implementations are used which are less efficient
in a couple of situations (e.g. insert with hint).
2024-10-31 22:04:13 -07:00
Ryan Heuer
f7dddb8014
[glass] Add Alerts widget ( #7219 )
2024-10-16 13:45:56 -06:00
Ryan Heuer
40caabea23
[glass] Align Field2d border and image padding ( #7214 )
2024-10-15 22:02:08 -07:00
Tyler Veness
554024767e
Fix errors from new cpplint.py ( #7105 )
2024-09-20 17:43:39 -07:00
Joseph Eng
1f3ef019ce
[wpiutil] Return wpi::expected from MemoryBuffer::GetFile ( #7069 )
2024-09-12 23:45:35 -07:00
Tyler Veness
d44b651558
[build] Make Protobuf optional in CMake build ( #7061 )
2024-09-12 23:44:19 -07:00
Wispy
7d64d4e24c
[sim] Add GUI support for the REV PH ( #6704 )
2024-07-15 17:28:05 -07:00
Joseph Eng
d6b66bfa55
[wpiutil] Add remove_prefix() and remove_suffix() ( #6118 )
2024-06-04 21:01:52 -07:00
Wispy
e2545231b8
[glass] Save input after clicking away ( #6657 )
2024-05-25 09:19:52 -07:00
Ryan Blue
65f4505e3c
[wpimath] Add constraints support to ProfiledPIDController Sendable implementation ( #6354 )
2024-05-24 10:39:56 -07:00
Tyler Veness
d88c71ffdc
[wpiutil] Upgrade to fmt 10.2.1, add wpi::print ( #6161 )
...
We now use a wrapper (wpi::print) to catch exceptions since we can't patch
std::print() to not throw when we ultimately migrate to it.
fmtlib and std format/print throw the same exceptions and always have. We previously patched fmt::print() to not throw a write failure exception, but we can't do that for std::print(); wpi::print() is the migration plan.
2024-05-12 06:25:42 -07:00
Ryan Heuer
ac32f921f6
[glass] Add math expression input for NetworkTables numerical values ( #6530 )
2024-04-28 12:03:49 -07:00
Peter Johnson
74057543aa
[glass] Don't limit window name+label to 128 chars ( #6447 )
2024-03-18 14:28:00 -07:00
Peter Johnson
4b94a64b06
[glass] Fix FMS game data display and editing ( #6381 )
...
Also don't require Enter for editing game data or match time.
2024-02-18 16:29:58 -08:00
Chris Gerth
a70e83ae2e
[glass] Update field size defaults in Field2D.cpp ( #6298 )
...
Looks like the field length is longer in 2024. Used the onshape model to measure the size.
2024-01-23 21:28:17 -08:00
Peter Johnson
3928ed5647
[sim] Sim GUI DS: Add "Disconnected" state and start in it ( #6218 )
...
The default state for the DS in the simulated HAL is changed to disconnected.
The FMS view is now only editable in DS disconnected state.
This enables more robot and field-like testing of robot code, as the
alliance color and other parameters start in invalid states and are
only set when the DS connects.
2024-01-20 21:10:02 -08:00
Peter Johnson
ecf1755e3e
[glass] Default to 2024 field image ( #6225 )
...
Also relax field scale check a bit so 2024 field image passes.
2024-01-14 14:47:54 -08:00
Peter Johnson
7e3678b0a4
[glass] Fix Field2d position and scaling ( #6222 )
...
Also adds some border padding for the non-image case.
2024-01-13 21:09:02 -08:00
Peter Johnson
7c26bc70ab
[sysid] Load DataLog files directly for analysis ( #6103 )
...
Co-authored-by: Oblarg <emichaelbrnett@gmail.com >
2024-01-05 16:24:31 -08:00
truher
ab309e34ef
[glass] Fix order of loading window settings ( #6056 )
2023-12-23 13:12:09 -08:00
m10653
43fb6e9f87
[glass] Add Profiled PID controller support & IZone Support ( #5959 )
2023-12-22 11:29:25 -08:00
Peter Johnson
14dcd0d26f
Use char instead of uint8_t for json::parse ( #5877 )
...
The uint8_t usage causes warnings on newer clang versions.
Add GetCharBuffer() to MemoryBuffer classes to make this easy.
2023-11-04 22:18:42 -07:00
Zhiquan Yeo
8a8e220792
[simgui] Add 'Invalid' option for AllianceStation ( #5820 )
2023-10-24 11:51:39 -07:00
PJ Reiniger
210255bfff
[wpiutil] Update json to 3.11.2 ( #5680 )
2023-10-14 21:53:56 -07:00
Tyler Veness
5ab54ff760
Replace wpi::raw_istream with wpi::MemoryBuffer ( #5675 )
...
Instances of wpi::raw_istream were left that are reading incrementally
from file descriptors like USB devices.
2023-09-21 23:20:09 -07:00
Tyler Veness
97021f074a
[build] Upgrade imgui and implot ( #5668 )
...
Upgrade implot to fix deprecation warning for sprintf(), and upgrade
imgui docking branch to match.
2023-09-19 23:38:17 -07:00
Tyler Veness
17f1062885
Replace std::snprintf() with wpi::format_to_n_c_str() ( #5645 )
...
fmtlib uses consteval format string processing, which makes it more
efficient than std::snprintf().
snprintf()s in libuv, mpack, processstarter, and wpigui were left alone.
processstarter uses stdlib only, and wpigui only depends on imgui.
fmt::format_to_n() is analogous to std::format_to_n()
(https://en.cppreference.com/w/cpp/utility/format/format_to_n )
wpi::format_to_n_c_str() is a wrapper which adds the trailing NUL.
2023-09-17 20:00:16 -07:00
Peter Johnson
b542e01a0b
[glass] Fix array crash when clearing existing workspace ( #5535 )
2023-08-12 15:17:43 -07:00
Ryan Blue
75cbd9d6d0
[glass] Add background color selector to glass plots ( #5506 )
2023-08-05 14:16:04 -07:00
Tyler Veness
652d1c44e3
[wpiutil] Upgrade to macOS 12 to remove concept shims ( #5379 )
...
The macOS deployment target has been upgraded from 10.15 to 11. Also, a
deprecation warning for sprintf() in libuv was suppressed.
2023-06-08 19:59:54 -07:00
Tyler Veness
91cbcea841
Replace SFINAE with concepts ( #5361 )
...
Concepts are cleaner to use and result in much better error messages for incorrect template use.
2023-06-07 09:50:09 -07:00
Peter Johnson
27fb47ab10
[glass] Field2D: Embed standard field images ( #5159 )
2023-05-12 21:31:38 -07:00
ohowe
b0c6724eed
[glass] Add hamburger menu icon to titlebars ( #4874 )
...
This does the same thing as right clicking, but provides a visual indicator.
The icon disappears if the window is too small or docked (right click keeps working).
2023-01-01 20:05:09 -08:00
Jordan McMichael
8618dd4160
[glass, wpilib] Replace remaining references to Speed Controller with Motor Controller ( #4769 )
2022-12-05 20:06:43 -08:00
ohowe
4307d0ee8b
[glass] Plot: allow for more than 11 plots ( #4685 )
...
Since m_windows is sorted using the ascii, when "Plot <10>" is reached it will be before "Plot <2>" in `m_windows` which makes it so it will not add a new plot after the id 10 is reached. This also fixes a potential issue of someone manually changing an id in the file, which would break adding a new plot in some circumstances.
2022-11-23 13:57:29 -08:00