COSMOS v6.8.1
I'm getting this Runtime error when trying to send a command with a validator defined. It seemed to work a couple times before this error started happening.
Error msg:
Error sending TARGET CMD due to RuntimeError: WriteRejectError('pre_check returned false for cmd("TARGET CMD") due to RuntimeError(\'Token is nil\')')
Example validator snippet:
from openc3.script import *
from openc3.packets.command_validator import CommandValidator
class CmdCntValidator(CommandValidator):
def pre_check(self, command):
self.cmd_cnt = tlm("TARGET PACKET CMD_CNT")
return [True, None]
Cmd definition snippet
VALIDATOR validators/cmd_cnt_validator.py
COSMOS v6.8.1
I'm getting this Runtime error when trying to send a command with a validator defined. It seemed to work a couple times before this error started happening.
Error msg:
Example validator snippet:
Cmd definition snippet