![]() |
WPILibC++ 2027.0.0-alpha-4
|
Functions | |
| bool | wpi::nt::SetFloatArray (NT_Handle pubentry, std::span< const float > value, int64_t time=0) |
| Publish a new value. | |
| bool | wpi::nt::SetDefaultFloatArray (NT_Handle pubentry, std::span< const float > defaultValue) |
| Publish a default value. | |
| std::vector< float > | wpi::nt::GetFloatArray (NT_Handle subentry, std::span< const float > defaultValue) |
| Get the last published value. | |
| TimestampedFloatArray | wpi::nt::GetAtomicFloatArray (NT_Handle subentry, std::span< const float > defaultValue) |
| Get the last published value along with its timestamp. | |
| std::vector< TimestampedFloatArray > | wpi::nt::ReadQueueFloatArray (NT_Handle subentry) |
| Get an array of all value changes since the last call to ReadQueue. | |
| std::vector< std::vector< float > > | wpi::nt::ReadQueueValuesFloatArray (NT_Handle subentry) |
| Get an array of all value changes since the last call to ReadQueue. | |
| std::span< float > | wpi::nt::GetFloatArray (NT_Handle subentry, wpi::util::SmallVectorImpl< float > &buf, std::span< const float > defaultValue) |
| TimestampedFloatArrayView | wpi::nt::GetAtomicFloatArray (NT_Handle subentry, wpi::util::SmallVectorImpl< float > &buf, std::span< const float > defaultValue) |
| TimestampedFloatArray wpi::nt::GetAtomicFloatArray | ( | NT_Handle | subentry, |
| std::span< const float > | defaultValue ) |
Get the last published value along with its timestamp.
If no value has been published, returns the passed defaultValue and a timestamp of 0.
| subentry | subscriber or entry handle |
| defaultValue | default value to return if no value has been published |
| TimestampedFloatArrayView wpi::nt::GetAtomicFloatArray | ( | NT_Handle | subentry, |
| wpi::util::SmallVectorImpl< float > & | buf, | ||
| std::span< const float > | defaultValue ) |
| std::vector< float > wpi::nt::GetFloatArray | ( | NT_Handle | subentry, |
| std::span< const float > | defaultValue ) |
Get the last published value.
If no value has been published, returns the passed defaultValue.
| subentry | subscriber or entry handle |
| defaultValue | default value to return if no value has been published |
| std::span< float > wpi::nt::GetFloatArray | ( | NT_Handle | subentry, |
| wpi::util::SmallVectorImpl< float > & | buf, | ||
| std::span< const float > | defaultValue ) |
| std::vector< TimestampedFloatArray > wpi::nt::ReadQueueFloatArray | ( | NT_Handle | subentry | ) |
Get an array of all value changes since the last call to ReadQueue.
Also provides a timestamp for each value.
| subentry | subscriber or entry handle |
| std::vector< std::vector< float > > wpi::nt::ReadQueueValuesFloatArray | ( | NT_Handle | subentry | ) |
Get an array of all value changes since the last call to ReadQueue.
| subentry | subscriber or entry handle |
| bool wpi::nt::SetDefaultFloatArray | ( | NT_Handle | pubentry, |
| std::span< const float > | defaultValue ) |
Publish a default value.
On reconnect, a default value will never be used in preference to a published value.
| pubentry | publisher or entry handle |
| defaultValue | default value |
| bool wpi::nt::SetFloatArray | ( | NT_Handle | pubentry, |
| std::span< const float > | value, | ||
| int64_t | time = 0 ) |
Publish a new value.
| pubentry | publisher or entry handle |
| value | value to publish |
| time | timestamp; 0 indicates current NT time should be used |